Skip to content

Commit 4c76fa7

Browse files
UI Tweaks
1 parent 47962ce commit 4c76fa7

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/components/block-styles-control/editor.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
}
8686
.components-button {
8787
width: 100%;
88+
position: relative;
8889

8990
&.ugb-block-styles-controls__selected {
9091
outline: 2px solid var(--stk-skin-dark) !important;
@@ -96,6 +97,13 @@
9697
}
9798
}
9899

100+
.components-panel__body:has(.ugb-pro-control-button__wrapper:not(.ugb-pro-control-button--hidden)) > *:not(.ugb-pro-control-button__wrapper) {
101+
height: 0 !important;
102+
overflow: hidden !important;
103+
min-height: 0 !important;
104+
max-height: 0 !important;
105+
}
106+
99107
.components-panel__body-description {
100108
margin: -12px 0 0;
101109
}

src/components/block-styles-control/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ export const BlockStylesControl = props => {
5252
const popoverOnCloseTimeout = useRef( null )
5353
const popoverOnCloseRef = useRef( false )
5454

55+
// Reset openProNotice when the popover is closed
56+
useEffect( () => {
57+
if ( ! openPopover ) {
58+
setOpenProNotice( false )
59+
}
60+
}, [ openPopover ] )
61+
5562
const mainClasses = classnames( [
5663
'components-panel__body',
5764
'ugb-block-styles-controls',
@@ -196,7 +203,8 @@ export const BlockStylesControl = props => {
196203
} }
197204
anchor={ buttonRef.current }
198205
offset={ 8 }
199-
placement="left"
206+
placement="left-start"
207+
resize={ false }
200208
>
201209
<PanelBody>
202210
<h2 className="components-panel__body-title">{ __( 'Block Styles', i18n ) }</h2>

0 commit comments

Comments
 (0)