Skip to content
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

Refactor word lists #110

Open
apmwebdev opened this issue Feb 1, 2024 · 0 comments
Open

Refactor word lists #110

apmwebdev opened this issue Feb 1, 2024 · 0 comments
Assignees
Labels
refactor Changing the way the code is written without changing (much of) the functionality ui UI-specific issues, often CSS related word lists Word list tabs issues (found words, excluded words, wrong guesses, answers)
Milestone

Comments

@apmwebdev
Copy link
Owner

apmwebdev commented Feb 1, 2024

The word lists currently use column-count to fit the words into multiple columns, but this isn't powerful or configurable enough.

Word lists should have the following configuration:

  • Columns of a specific width, clamped to be within a certain range rather than a fixed value.
  • Words truncated with an ellipsis if they're wider than a certain width. This should only cut off very long words. Most words should be able to be seen in their entirety.
  • A specific number of columns visible within the word list container without scrolling, dynamic based on the width of the columns and the container.
  • The individual columns for the list will likely need to be grid or flex items. Each segment of the list will therefore need to be determined before rendering, meaning that the full list will need to be split up into sub-lists for each segment. Currently, the columns are 15 words, but this can likely be made to be dynamic in some way, depending on the viewport or container height.
  • The horizontal scroll bar should show up consistently when the list container can be scrolled. It doesn't do this currently. The Radix ScrollArea seems buggy in this regard and may not be usable as a result, but it might work better if the columns are grid or flex items (i.e., distinct elements that are added) rather than column-count columns.
@apmwebdev apmwebdev added word lists Word list tabs issues (found words, excluded words, wrong guesses, answers) ui UI-specific issues, often CSS related refactor Changing the way the code is written without changing (much of) the functionality labels Feb 1, 2024
@apmwebdev apmwebdev added this to the Alpha release milestone Feb 1, 2024
@apmwebdev apmwebdev self-assigned this Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Changing the way the code is written without changing (much of) the functionality ui UI-specific issues, often CSS related word lists Word list tabs issues (found words, excluded words, wrong guesses, answers)
Projects
None yet
Development

No branches or pull requests

1 participant