Skip to content

Commit

Permalink
Update site icon and title position (#66171)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: jasmussen <[email protected]>
  • Loading branch information
3 people authored and gutenbergplugin committed Oct 17, 2024
1 parent f98cdf7 commit 3457f6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {

.edit-site-layout__view-mode-toggle-icon {
display: flex;
height: $grid-unit-80;
width: $grid-unit-80;
height: $header-height;
width: $header-height;
justify-content: center;
align-items: center;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/site-hub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const SiteHub = memo(
label={ __( 'Go to the Dashboard' ) }
className="edit-site-layout__view-mode-toggle"
style={ {
transform: 'scale(0.5)',
transform: 'scale(0.5333) translateX(-4px)', // Offset to position the icon 12px from viewport edge
borderRadius: 4,
} }
>
Expand Down Expand Up @@ -99,7 +99,7 @@ const SiteHub = memo(
className="edit-site-site-hub__actions"
>
<Button
__next40pxDefaultSize
size="compact"
className="edit-site-site-hub_toggle-command-center"
icon={ search }
onClick={ () => openCommandCenter() }
Expand Down
4 changes: 4 additions & 0 deletions packages/edit-site/src/components/site-hub/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
justify-content: space-between;
gap: $grid-unit-10;
margin-right: $grid-unit-15;
height: $grid-unit-70;
}

.edit-site-site-hub__actions {
Expand All @@ -29,6 +30,9 @@
overflow: hidden;
// Add space for the ↗ to render.
padding-right: $grid-unit-20;

// Create 12px gap between site icon and site title
margin-left: - $grid-unit-05;
position: relative;
text-decoration: none;
text-overflow: ellipsis;
Expand Down

0 comments on commit 3457f6b

Please sign in to comment.