-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
narrow_mode: Add option to hide user list on wide screens. #19927
base: main
Are you sure you want to change the base?
Conversation
e2c6ec1
to
6690bd2
Compare
6690bd2
to
f0b2757
Compare
6f9f0d6
to
d8ac006
Compare
Oh! Migrations conflict wait a sec. |
20103b2
to
861857d
Compare
There is some issue with scrollbar width, which I am working on. Need to run this both on mac and window to properly test it. |
861857d
to
9c1bb9d
Compare
9c1bb9d
to
ae7a635
Compare
1a9720e
to
09f257d
Compare
b4d8eb5
to
1a9720e
Compare
This should be ready for review. Since the changes only apply if narrow_mode is enabled, should be a safe deploy. It is important this gets tested on different OS and browsers. Although, I tested it on Mac and windows myself. |
1a9720e
to
1be25c4
Compare
faef742
to
c68ff41
Compare
@alya this should be ready for your review. Thanks! |
Cool, thanks! A few observations:
Use full width on wide screens |
d7c0757
to
22b96bc
Compare
@alya this is ready for another review. I fixed a lot of cases related to the three modes that I missed earlier. |
22b96bc
to
b148558
Compare
Thinking about the new option, should it just be called "Hide user list", or perhaps "Hide user list (right sidebar)" for clarity? Since the user list is hidden with all window sizes when this option is selected, it seems confusing to specifically mention wide windows. |
b148558
to
7801743
Compare
@timabbott , we've done some iteration on this one -- I think the next step is a review from you. |
Heads up @amanagr, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
Commit 7fc191d added this as preparation for zulip#19927, but we already have @extend from postcss-extend-rule and don’t need both. Signed-off-by: Anders Kaseorg <anders@zulip.com>
@@ -15,6 +15,7 @@ module.exports = ({file}) => ({ | |||
}), | |||
require("postcss-nested"), | |||
require("postcss-extend-rule"), | |||
require("postcss-mixins"), |
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.
FYI in case this gets revived, I’ve removed postcss-mixins in #24731, because you can already do this with postcss-extend-rule (as we do for %dark-theme
).
Sorry to poke @timabbott but it would be fantastic to get this through the finish line. Appreciate all the hard work! <3 |
4ec3636
to
88b200c
Compare
We store the css required to hide user list on narrow screens in
narrow_width_styles
and apply them on wise screens ifnarrow_mode
is enabled in user_settings.Declaring
narrow_width_styles
requires addition ofpostcss-mixins
packages. This helps keep codebase cleanof repeated code.
To apply the JS required to hide user list in wide screens we
make the app behave as if we were in narrow width on wide
widths by making
is_narrow
True
inmessage_viewport
.narrow_mode
field is added toUserProfile
which is usedto toggle this option by the user.