mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-16 20:01:51 +00:00
UI: Remove sidebar fluctuation on switching the toggle button
Fixes #301
This commit is contained in:
@@ -18,7 +18,7 @@ body {
|
|||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar {
|
.toggle-sidebar {
|
||||||
background: #222c31;
|
background: #222c31;
|
||||||
width: 54px;
|
width: 54px;
|
||||||
padding: 27px 0 20px 0;
|
padding: 27px 0 20px 0;
|
||||||
@@ -27,6 +27,22 @@ body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
transition: all 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-sidebar div {
|
||||||
|
transform: translateX(0);
|
||||||
|
transition: all 0.5s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-hide {
|
||||||
|
width: 0;
|
||||||
|
transition: all 0.8s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-hide div {
|
||||||
|
transform: translateX(-100%);
|
||||||
|
transition: all 0.6s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
@@ -285,7 +301,9 @@ webview:focus {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Full screen Popup container */
|
/* Full screen Popup container */
|
||||||
|
|
||||||
.popup .popuptext {
|
.popup .popuptext {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
background-color: #555;
|
background-color: #555;
|
||||||
|
|||||||
@@ -260,9 +260,9 @@ class ServerManagerView {
|
|||||||
|
|
||||||
toggleSidebar(show) {
|
toggleSidebar(show) {
|
||||||
if (show) {
|
if (show) {
|
||||||
this.$sidebar.classList.remove('hidden');
|
this.$sidebar.classList.remove('sidebar-hide');
|
||||||
} else {
|
} else {
|
||||||
this.$sidebar.classList.add('hidden');
|
this.$sidebar.classList.add('sidebar-hide');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<div class="popup">
|
<div class="popup">
|
||||||
<span class="popuptext hidden" id="fullscreen-popup"></span>
|
<span class="popuptext hidden" id="fullscreen-popup"></span>
|
||||||
</div>
|
</div>
|
||||||
<div id="sidebar">
|
<div id="sidebar" class="toggle-sidebar">
|
||||||
<div id="view-controls-container">
|
<div id="view-controls-container">
|
||||||
<div id="tabs-container"></div>
|
<div id="tabs-container"></div>
|
||||||
<div id="add-tab" class="tab functional-tab">
|
<div id="add-tab" class="tab functional-tab">
|
||||||
|
|||||||
Reference in New Issue
Block a user