Skip to content

Commit

Permalink
Update site editor title truncation (#36436)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster authored Nov 16, 2021
1 parent 2d23fcd commit a4da338
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 $grid-unit;
height: 100%;
// Flex items will, by default, refuse to shrink below a minimum
// intrinsic width. In order to shrink this flexbox item, and
Expand Down Expand Up @@ -40,15 +41,6 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 120px;

@include break-medium() {
max-width: 75px;
}

@include break-xlarge() {
max-width: 180px;
}
}

.edit-site-document-actions__secondary-item {
Expand Down
3 changes: 2 additions & 1 deletion packages/edit-site/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ $header-toolbar-min-width: 335px;
display: flex;
align-items: center;
height: 100%;
flex-grow: 1;
justify-content: center;
// Flex items will, by default, refuse to shrink below a minimum
// intrinsic width. In order to shrink this flexbox item, and
// subsequently truncate child text, we set an explicit min-width.
Expand Down Expand Up @@ -109,7 +111,6 @@ body.is-navigation-sidebar-open {
.edit-site-header__actions {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
padding-right: $grid-unit-05;

.interface-pinned-items {
Expand Down

0 comments on commit a4da338

Please sign in to comment.