Skip to content

Commit

Permalink
layout: fix expander appearing bug (tensorflow#5503)
Browse files Browse the repository at this point in the history
When the sidebar got resized and the width is small enough, we collapsed it. The bug is the expander used to reopen the sidebar disappears and the sidebar can never be expanded again. (What's worse is we remember this setting in local storage). This pr fixes the bug.
  • Loading branch information
japie1235813 authored and dna2github committed May 1, 2023
1 parent 3c10a19 commit bf0c2e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorboard/webapp/core/views/layout_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ limitations under the License.
.expand {
@include tb-theme-foreground-prop(border-color, border);
box-sizing: border-box;
contain: strict;
flex: 0 0;
justify-self: stretch;
}
Expand All @@ -44,6 +43,7 @@ limitations under the License.
border-style: solid;
border-width: 0 2px;
cursor: ew-resize;
contain: strict;
display: flex;
justify-self: stretch;

Expand All @@ -69,6 +69,7 @@ limitations under the License.
border-style: solid;
border-width: 0 1px 0 0;
color: inherit;
contain: content;
cursor: pointer;
display: flex;
justify-self: stretch;
Expand Down

0 comments on commit bf0c2e2

Please sign in to comment.