Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Increase size of right pane of subscriptions/usergroups modal.

evykassirerdfe3769d9707
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 6fa48555cfa..60f71403935 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -339,11 +339,12 @@ h4.user_group_setting_subsection_title {
}
/* There's an awkward width of modal that is wider than the
- @media breakpoint that collapses the left pane, but still
- narrow enough (965px at 14px em) that the sort buttons need
- a second row to be visible without overlapping other UI. */
+ breakpoint that collapses the left pane, but still narrow
+ enough that the sort buttons need a second row to be visible
+ without overlapping other UI. Note that for 16px and larger
+ font sizes, we always show two rows of buttons. */
@container settings-overlay (width >= $settings_overlay_sidebar_collapse_breakpoint) {
- @container subscriptions (width < calc(60em + 70px)) {
+ @container subscriptions (width < calc(80em + 80px)) {
#subscription_overlay .subscriptions-container {
.left {
.list-toggler-container {
@@ -385,47 +386,6 @@ h4.user_group_setting_subsection_title {
}
}
-/* Copy all the above styles for the breakpoint where the overlay
- becomes 40% left pane and 60% right pane, since that automatically
- qualifies the modal for collapsing the buttons into two rows, and
- especially for smaller font-sizes this will happen before the
- breakpoint for the subscriptions container width. */
-@media (width < $lg_min) {
- @container settings-overlay (width >= $settings_overlay_sidebar_collapse_breakpoint) {
- #subscription_overlay .subscriptions-container {
- .left {
- .list-toggler-container {
- height: 5em;
- justify-content: end;
- flex-wrap: wrap;
- }
-
- .tab-switcher {
- margin-right: 0;
- }
-
- .tab-switcher:first-child {
- width: 100%;
- display: flex;
- justify-content: end;
- }
- }
-
- .right .display-type {
- height: 5em;
- }
-
- .streams-list {
- height: calc(100% - 5.4em - 40px);
- }
-
- #stream_settings {
- height: calc(100% - 5em);
- }
- }
- }
-}
-
.user-groups-container,
.subscriptions-container {
position: relative;
@@ -481,7 +441,7 @@ h4.user_group_setting_subsection_title {
position: relative;
display: inline-block;
vertical-align: top;
- width: 50%;
+ width: 40%;
height: calc(100% - var(--settings-overlay-header-height));
margin: 0 -2px;
}
@@ -552,7 +512,7 @@ h4.user_group_setting_subsection_title {
}
.right {
- width: calc(50% + 1px);
+ width: calc(60% + 1px);
.nothing-selected .create_stream_button,
.nothing-selected .create_user_group_button {
@@ -1453,17 +1413,6 @@ div.settings-radio-input-parent {
.subscriptions-container {
max-width: 95%;
}
-
- #groups_overlay,
- #subscription_overlay {
- .left {
- width: 40%;
- }
-
- .right {
- width: calc(60% - 1px);
- }
- }
}
@media (width < $lg_min) {