Skip to content

Conversation

@TheVanadium
Copy link
Contributor

I made a pull request for this but didn't do it properly and I believe the build failed because of it
Fixes #14740
Before:
image
After:
image

TheVanadium and others added 2 commits March 5, 2024 05:15
When the page got to small, the tag bar becomes horizontal at the top of the screen and forces a very wide screen width.
Giving the bar overflow-x allows it to shrink to the screen, allowing the other objects to align properly as well.
@TheVanadium
Copy link
Contributor Author

@schlawg (requested to be notified upon draft release)
This is the one that passed the checks

@schlawg
Copy link
Contributor

schlawg commented Mar 5, 2024

Excellent, looks good to me! My only request - we avoid declaring style attributes in scalatags when there's a good alternative. Unfortunately, the appropriate scss source file can be fiendishly difficult to find (it's a problem). In this case you want ui/pagelets/css/_video.scss. The overflow-x style should be declared on page-menu__menu there.

@Carbrex
Copy link
Member

Carbrex commented Mar 5, 2024

Theres also a little scrollbar for horizontal scroll even on desktop screen so put it inside some media query

@schlawg
Copy link
Contributor

schlawg commented Mar 5, 2024

just use overflow-x: auto

@TheVanadium
Copy link
Contributor Author

@schlawg @Carbrex Does this work?

@TheVanadium TheVanadium marked this pull request as ready for review March 6, 2024 15:50
@schlawg schlawg merged commit f00d36e into lichess-org:master Mar 6, 2024
@TheVanadium TheVanadium deleted the page-menu-layout branch March 6, 2024 18:52
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 this pull request may close these issues.

mobile layouts on video library are broken

3 participants