Skip to content

Commit 8913e6d

Browse files
jameskosterMamaduka
authored andcommitted
Fix text alignment in the Site Editor sidebar (#48959)
* Fix text alignment * Remove width width override
1 parent 15c8701 commit 8913e6d

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
.edit-site-sidebar-navigation-item.components-item {
22
color: $gray-600;
3-
border-width: $border-width-tab;
3+
margin: 0 $grid-unit-05;
44

55
&:hover,
66
&:focus,
77
&[aria-current] {
88
color: $white;
99
background: $gray-800;
10-
border-width: $border-width-tab;
1110
}
1211

1312
&[aria-current] {
@@ -17,6 +16,5 @@
1716

1817
.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button {
1918
cursor: grab;
20-
width: calc(100% - #{ $border-width-focus });
2119
padding: $grid-unit-10;
2220
}

packages/edit-site/src/components/site-hub/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ const SiteHub = forwardRef( ( props, ref ) => {
9595
</Button>
9696
</motion.div>
9797

98-
{ showLabels && <div>{ siteTitle }</div> }
98+
{ showLabels && (
99+
<div className="edit-site-site-hub__site-title">
100+
{ siteTitle }
101+
</div>
102+
) }
99103
</HStack>
100104
</motion.div>
101105
);

packages/edit-site/src/components/site-hub/style.scss

+4
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@
2626
white-space: nowrap;
2727
overflow: hidden;
2828
}
29+
30+
.edit-site-site-hub__site-title {
31+
margin-left: $grid-unit-05;
32+
}

0 commit comments

Comments
 (0)