Skip to content

Commit

Permalink
Library: Fix misalignment of description in custom template parts (#5…
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Jun 26, 2023
1 parent 7f8447b commit bbd2abb
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.edit-site-sidebar-navigation-screen-pattern__added-by-description {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: $grid-unit-30;
}

.edit-site-sidebar-navigation-screen-pattern__added-by-description-author {
display: inline-flex;
align-items: center;

img {
border-radius: $grid-unit-15;
}

svg {
fill: $gray-600;
}
}

.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon {
width: 24px;
height: 24px;
margin-right: $grid-unit-10;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
align-items: center;
justify-content: space-between;
margin-top: $grid-unit-30;
}

&-author {
display: inline-flex;
align-items: center;

img {
border-radius: $grid-unit-15;
}
.edit-site-sidebar-navigation-screen-template__added-by-description-author {
display: inline-flex;
align-items: center;

svg {
fill: $gray-600;
}
img {
border-radius: $grid-unit-15;
}

&-icon {
width: 24px;
height: 24px;
margin-right: $grid-unit-10;
}
svg {
fill: $gray-600;
}
}

.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon {
width: 24px;
height: 24px;
margin-right: $grid-unit-10;
}

.edit-site-sidebar-navigation-screen-template__template-area-button {
color: $white;
display: flex;
Expand Down
1 change: 1 addition & 0 deletions packages/edit-site/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
@import "./components/sidebar-navigation-screen-navigation-menu/style.scss";
@import "./components/sidebar-navigation-screen-page/style.scss";
@import "components/sidebar-navigation-screen-details-panel/style.scss";
@import "./components/sidebar-navigation-screen-pattern/style.scss";
@import "./components/sidebar-navigation-screen-template/style.scss";
@import "./components/site-hub/style.scss";
@import "./components/sidebar-navigation-screen-navigation-menus/style.scss";
Expand Down

1 comment on commit bbd2abb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in bbd2abb.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5372543657
📝 Reported issues:

Please sign in to comment.