Fix resizer handler bar style and position

This commit is contained in:
Chi-Hsuan Huang 2023-11-03 13:39:04 +08:00
parent 061f63abd9
commit 14e37229a5
2 changed files with 3 additions and 5 deletions

View File

@ -158,7 +158,7 @@ export const OnboardingTour = ( {
[ key: string ]: unknown;
} ) => {
if ( placement === 'left' ) {
return [ -15, 35 ];
return [ 0, 25 ];
}
return [ 52, 16 ];
},

View File

@ -189,12 +189,10 @@ function ResizableFrame( {
},
};
const currentResizeHandleVariant = ( () => {
if ( isResizing ) {
if ( isResizing || isHandleVisibleByDefault ) {
return 'active';
}
return shouldShowHandle || isHandleVisibleByDefault
? 'visible'
: 'hidden';
return shouldShowHandle ? 'visible' : 'hidden';
} )();
const resizeHandler = (