mirror of
https://github.com/nasa/openmct.git
synced 2025-01-29 15:43:52 +00:00
Fix logic such that pane icons are hidden when tree is collapsed
This commit is contained in:
parent
16253a921f
commit
4640ab8331
@ -133,10 +133,9 @@
|
|||||||
&__pane-tree {
|
&__pane-tree {
|
||||||
background: linear-gradient(90deg, transparent 70%, rgba(black, 0.2) 99%, rgba(black, 0.3));
|
background: linear-gradient(90deg, transparent 70%, rgba(black, 0.2) 99%, rgba(black, 0.3));
|
||||||
|
|
||||||
.l-pane__header {
|
.l-pane__header {
|
||||||
// Hide all buttons except the collapse button
|
> :not(.l-pane__collapse-button) { // On default, show all the header icons.
|
||||||
> :not(.l-pane__collapse-button) {
|
display: block;
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +147,11 @@
|
|||||||
[class*='collapse-button'] {
|
[class*='collapse-button'] {
|
||||||
right: -8px;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,11 +78,6 @@
|
|||||||
&.l-pane--collapsed {
|
&.l-pane--collapsed {
|
||||||
padding-left: 0 !important;
|
padding-left: 0 !important;
|
||||||
padding-right: 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 {
|
body.mobile {
|
||||||
.l-pane__header{
|
.l-pane__header{
|
||||||
> * {
|
> * {
|
||||||
display: block !important;
|
|
||||||
@include ellipsize();
|
@include ellipsize();
|
||||||
@include userSelectNone();
|
@include userSelectNone();
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
@ -71,6 +71,9 @@
|
|||||||
color: $colorItemTreeIcon;
|
color: $colorItemTreeIcon;
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
height: 50%;
|
height: 50%;
|
||||||
|
body.mobile &{
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
// TEMP: uses object-label component, hide label part
|
// TEMP: uses object-label component, hide label part
|
||||||
.c-object-label__name {
|
.c-object-label__name {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user