Skip to content

Commit

Permalink
Use flex 1 instead of width percentage, use a min function on the anc…
Browse files Browse the repository at this point in the history
…hor to ensure it never steals more than half of the row width
  • Loading branch information
andrewserong committed Jul 11, 2022
1 parent 71cbd7c commit 26d7799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/list-view/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
}

.block-editor-list-view-block-select-button__title {
width: 100%;
flex: 1;
position: relative;

.components-truncate {
Expand All @@ -317,7 +317,7 @@
border-radius: $radius-block-ui;
display: inline-block;
padding: 2px 6px;
max-width: 100px;
max-width: min(100px, 40%);
overflow: hidden;
text-overflow: ellipsis;
}
Expand Down

0 comments on commit 26d7799

Please sign in to comment.