-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Autocompleter box size matches the content width #1175
Conversation
Note however that no upper limit is set on the width of the autocompleter box - it is possible, but I don't see how we could come up with a good value for it.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1175 +/- ##
=======================================
Coverage 41.47% 41.47%
=======================================
Files 59 59
Lines 4272 4272
Branches 2336 2336
=======================================
Hits 1772 1772
- Misses 999 1002 +3
+ Partials 1501 1498 -3 ☔ View full report in Codecov by Sentry. |
@veloman-yunkan I propose 300px (it's arbitrary), we should have ellipsis if this happens (title too long) and HTML hint, so if someone if |
Truncating the suggestion and adding a hint (to be displayed on hover) will be a lot more work. And it will be mostly unused on mobile. Should we really pursue it? |
@veloman-yunkan All of this should be doable via a few CSS directives... or do I get it wrong! |
Indeed, |
Done. Please test. Note however that I don't like in this PR that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only a few remarks:
300px
is too small. Not sure about the right attitude: removing this or putting something significantly larger. Probably putting600px
is the best compromise.- I don't understand why putting the new CSS rules in
kiwix.css
would be better. Looks good to me like it is.
|
The width of the suggestion box is capped at 600 pixels. The full text of a suggestion is shown on hover (doesn't work on mobile).
e15d872
to
2eea613
Compare
Done |
Note however that no upper limit is set on the width of the autocompleter box - it is possible, but I don't see how we could come up with a good value for it.
Fixes #674