Skip to content

[Feature] - Enhance Language Selection UX: Fix Position or Restrict Height of Code Snippet List #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Devamchaudhari opened this issue Feb 1, 2025 · 4 comments · Fixed by #252

Comments

@Devamchaudhari
Copy link
Contributor

What feature would you like to see?

Problem Statement:

  • Currently, the language selection box is placed in the aside section. When a user selects "All Snippets," multiple code snippets are displayed on the right side. If the user scrolls down significantly, they need to scroll back up again to change the language, which disrupts the user experience.

Proposed Solution:

To improve usability, we can implement one of the following solutions:

  • Fix the Position: Make the language selection box sticky so that it remains visible when the user scrolls down.
  • Restrict the Code Snippet List Height: Limit the height of the code snippet list and make it scrollable, ensuring the language selection box remains accessible without extra scrolling.

Expected Benefits:

  • Enhances user experience by making language switching more convenient.
  • Reduces unnecessary scrolling, especially when many snippets are displayed.
  • Improves accessibility and usability for users navigating through large lists of code snippets.
@technoph1le
Copy link
Owner

Hey, there! Thanks for suggesting the idea. Yeah, we need to consider this as well.

Both suggestions are good. Let me know which one you would prefer. Personally, I like the 2nd idea because categories are likely grow as well and we might have to set a height for it in the future. Therefore, perhaps, setting heights for both categories and snippets? I'm open to listening your thoughts on this.

@Devamchaudhari
Copy link
Contributor Author

Hey @dostonnabotov , 😊 I agree with you, I also prefer the second idea. Since categories might expand in the future, setting a fixed height for both the categories and snippets makes sense. This approach ensures better scalability while keeping the UI clean✨ and accessible.

@technoph1le
Copy link
Owner

@Devamchaudhari, let me know if you plan to make a PR for it.

@Devamchaudhari
Copy link
Contributor Author

@dostonnabotov Sure! I'll start working on it 😊and raise a PR soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants