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: Allow tab switcher text to expand to show full text.

Aman Agrawal153f983b015e
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 2ddc9ac247c..e4099211836 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -1,7 +1,7 @@
/* The height of the settings header (including tab switcher). */
$settings_header_height: 45px;
/* The width of the settings sidebar. */
-$settings_sidebar_width: 250px;
+$settings_sidebar_width: 255px;
label {
margin: 0;
@@ -1300,6 +1300,31 @@ $option_title_width: 180px;
height: $settings_header_height;
padding: 6px;
border-bottom: 1px solid hsl(0deg 0% 87%);
+
+ @media (width >= $md_min) {
+ .tab-switcher {
+ position: absolute;
+ display: flex;
+ left: 10px;
+ z-index: 1;
+
+ .ind-tab {
+ width: auto;
+ min-width: 95px;
+ }
+ }
+ }
+
+ @media (width < $md_min) {
+ .tab-switcher {
+ display: flex;
+ justify-content: center;
+
+ .ind-tab {
+ width: auto;
+ }
+ }
+ }
}
}
@@ -1386,13 +1411,6 @@ $option_title_width: 180px;
.org-settings-list {
position: relative;
}
-
- .settings-sticky-bar {
- position: sticky;
- z-index: 1;
- background-color: hsl(0deg 0% 100%);
- top: 0;
- }
}
.settings-header {
diff --git a/web/templates/settings_overlay.hbs b/web/templates/settings_overlay.hbs
index 32546f53c32..80b389df4e4 100644
--- a/web/templates/settings_overlay.hbs
+++ b/web/templates/settings_overlay.hbs
@@ -8,7 +8,7 @@
<div class="clear-float"></div>
</div>
<div class="sidebar-wrapper">
- <div class="center tab-container settings-sticky-bar"></div>
+ <div class="center tab-container"></div>
<div class="sidebar left" data-simplebar data-simplebar-tab-index="-1">
<div class="sidebar-list dark-grey small-text">
<ul class="normal-settings-list">