File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/components/block-styles-control Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 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 ;
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 }
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments