Fix logic such that pane icons are hidden when tree is collapsed

This commit is contained in:
Rukmini Bose 2024-03-25 15:18:20 -07:00
parent 16253a921f
commit 4640ab8331
3 changed files with 11 additions and 10 deletions

View File

@ -133,10 +133,9 @@
&__pane-tree {
background: linear-gradient(90deg, transparent 70%, rgba(black, 0.2) 99%, rgba(black, 0.3));
.l-pane__header {
// Hide all buttons except the collapse button
> :not(.l-pane__collapse-button) {
display: none;
.l-pane__header {
> :not(.l-pane__collapse-button) { // On default, show all the header icons.
display: block;
}
}
@ -148,6 +147,11 @@
[class*='collapse-button'] {
right: -8px;
}
.l-pane__header{ // If pane is collapsed, hide all the icons except the collapse button, which gets replaced into the hamburger menu.
> :not(.l-pane__collapse-button) {
display: none;
}
}
}
}
}

View File

@ -78,11 +78,6 @@
&.l-pane--collapsed {
padding-left: 0 !important;
padding-right: 0 !important;
body.mobile & {
.l-shell__sync-tree-button .l-shell__reset-tree-button{
display: none !important;
}
}
}
}
@ -386,7 +381,6 @@
body.mobile {
.l-pane__header{
> * {
display: block !important;
@include ellipsize();
@include userSelectNone();
text-transform: uppercase;

View File

@ -71,6 +71,9 @@
color: $colorItemTreeIcon;
font-size: 1.25em;
height: 50%;
body.mobile &{
height: auto;
}
// TEMP: uses object-label component, hide label part
.c-object-label__name {