Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (WP6.3): added styling to prevent design library from being misaligned #2785

Merged
merged 8 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/block/design-library/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ const Edit = props => {
}

return (
<div className="ugb-design-library-block">
<div
className="ugb-design-library-block"
data-block={ props.clientId }
>
<Placeholder
icon={ <SVGStackableIcon /> }
label={ __( 'Stackable Design Library', i18n ) }
Expand Down
11 changes: 10 additions & 1 deletion src/components/modal-design-library/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
flex-direction: column;
}
.components-modal__header {
padding: 0px;
margin: 0;
height: 58px;
border-bottom: 1px solid #ddd;
Expand All @@ -30,6 +31,9 @@
}
.components-button {
left: 0 !important;
&.has-icon {
margin: 10px;
}
}
}
.ugb-modal-design-library__wrapper {
Expand All @@ -47,6 +51,9 @@
flex-direction: column;
overflow: hidden;
z-index: 1;
position: absolute;
width: 300px;
height: 100%;

.ugb-control-separator {
margin: 8px 0 !important;
Expand All @@ -57,7 +64,7 @@
display: flex;
justify-content: flex-end;
padding: 0 24px;
height: 80px;
height: 50px;
prconcepcion marked this conversation as resolved.
Show resolved Hide resolved
align-items: center;
grid-column: 2 / 3;
grid-row: 1 / 2;
Expand Down Expand Up @@ -98,6 +105,7 @@
.ugb-modal-design-library__filters {
overflow-y: auto;
padding: 24px;
height: 100%;
}

/**
Expand Down Expand Up @@ -250,6 +258,7 @@
.ugb-modal-design-library .components-modal__header-heading {
display: flex;
align-items: center;
padding: 0 32px;
.ugb-advanced-toolbar-control {
margin: 0 32px;
> *,
Expand Down
Loading