-
Notifications
You must be signed in to change notification settings - Fork 20
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
style(frontend): put buttons at the extreme bottoms for smaller screens [GIX-3015] #2555
style(frontend): put buttons at the extreme bottoms for smaller screens [GIX-3015] #2555
Conversation
padding-inline: var(--padding-2_5x); | ||
|
||
@media (min-width: 768px) { |
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.
You can use @include media.min-width(medium) {
from the mixin in gix cmp.
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.
thank you! done!
@@ -145,7 +145,12 @@ div.modal { | |||
border-radius: 0; | |||
|
|||
div.content { | |||
height: 100vh; |
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.
Sorry did not noticed it before, that's correct?
- The inner content is not 100vh no?
- On desktop we don't want 100vh?
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.
You are right: that was a poor solution. After a few iterations, I found that the best way is to set flex: 1
(see last commit.
For context, before this last solution, the ideal would have been 100%
, but it was not working... The 100vh
worked without going outside the parent... (see video below)
Screen.Recording.2024-09-27.at.13.22.57.mov
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, thx
…ottoms-for-smaller-screens
Motivation
It was noticed that the buttons in modals for smaller screens are not at the extreme bottom, if the phone is longer.
Before
After