-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Improve Responsiveness on Install Screen #1097
Conversation
Handles the edge case where images in the Install steps can obscure the text below them at certain window dimensions. In most cases, it's not possible to replicate this behavior due to minimum dimension settings in `chromium.js`. However, some window managers (such as i3) can ignore those settings, producing this bug. This fix introduces a flexible, responsive layout to the Install steps, with the goal of keeping the action buttons in a consistent position while adapting the rest of the content to the remaining available space. The result is a clean, usable screen at any window size. In the rare instance that a window's dimensions are less than that of the minimums set in `chromium.js`, scrollbars will appear to keep the smallest acceptable layout intact. Potential side effects: - Each `.step` element contains an`.inner` flexbox wrapper, which arranges its children in a column. The layout works best when each `flex-item` is an element that wraps the content inside of it. I think I accounted for all the possibilities on the Install screen, but any future `.step` items might want to keep that pattern in mind. Resolves signalapp#1059 FREEBIE
Looks pretty nice, except for the first screen when the window grows very large and the logo is kind of floating in the middle by itself. Can we the "Welcome..." and other text tucked just under the logo, instead of down by the dots/button? |
Shouldn't the get started button also remain with the text instead of the step dots? |
@vinyll The original design was built in a way that kept all the action buttons in a fixed position (presumably so you could click through multiple steps without having to move your mouse cursor). If the button is moved underneath the text, then we couldn't count on it being in the same position from step-to-step, due to the variation in text and image heights. I wanted to keep that original feature intact, and fixing the actions alongside the step dots seemed like the only way to make it happen. |
Quick update — just tested this out with a local build of the iOS app and everything is rendering as expected. @liliakai If it looks good to you, I think it's good to go for me! |
7dd4bad |
#1059
First time contributor checklist
Contributor checklist
FREEBIE
in my Git commit messagesDescription
Demo
Responsiveness
Short window height
Notes
Handles the edge case where images in the Install steps can obscure the text below them at certain window dimensions.
In most cases, it's not possible to replicate this behavior due to minimum dimension settings in
chromium.js
. However, some window managers (such as i3) can ignore those settings, producing this bug.This fix introduces a flexible, responsive layout to the Install steps, with the goal of keeping the action buttons in a consistent position while adapting the rest of the content to the remaining available space. The result is a clean, usable screen at any window size.
In the rare instance that a window's dimensions are less than that of the minimums set in
chromium.js
, scrollbars will appear to keep the smallest acceptable layout intact.Potential side effects:
.step
element contains an.inner
flexbox wrapper, which arranges its children in a column. The layout works best when eachflex-item
is an element that wraps the content inside of it. I believe I accounted for all the possibilities on the Install screen, but any future.step
items might want to keep that pattern in mind.Test Methods
.step
element inoptions.html
, and resizing the window using both the cursor and a window manager.TODO:
Resolves #1059