Skip to content

Commit

Permalink
fix(react): Make TwoColumnPanel wrap to prevent content from getting …
Browse files Browse the repository at this point in the history
…cut out (#952)

* fix(react): Make TwoColumnPanel wrap to prevent content from getting cut out

* change

* padding

* comment
  • Loading branch information
dequejosie authored Mar 15, 2023
1 parent 0645c1f commit ca04237
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/styles/two-column-panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
}

.TwoColumnPanel__Header {
padding: 0 var(--space-small);
/* The -2px is to account for the borders that are outside of the element and will make it line up with the left panel when there's only one line of text */
padding: calc(var(--space-small) - 2px);
border-bottom: 1px solid var(--two-column-panel-border-color);
height: var(--two-column-panel-header-height);
line-height: var(--two-column-panel-header-height);
min-height: var(--two-column-panel-header-height);
font-weight: 500;
color: var(--two-column-panel-header-text-color);
flex: 1;
display: flex;
align-items: center;
}

.TwoColumnPanel__Left {
Expand Down Expand Up @@ -176,12 +178,16 @@
margin-bottom: 0;
}

.TwoColumnPanel__ButtonToggle {
display: flex;
}

.TwoColumnPanel__ButtonToggle button,
.TwoColumnPanel__Close button {
background-color: transparent;
border: none;
border-bottom: 1px solid var(--two-column-panel-border-color);
height: var(--two-column-panel-header-height);
min-height: var(--two-column-panel-header-height);
width: var(--two-column-panel-header-height);
}

Expand Down

0 comments on commit ca04237

Please sign in to comment.