fix(ui): alignment buttons for the whiteboard context menu

pull/10897/head
charlie 2024-01-15 12:20:23 +08:00
parent 38eeb8cc8a
commit 10d2dff91f
3 changed files with 11 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -70,7 +70,7 @@ export const ContextMenu = observer(function ContextMenu({
!app.readOnly &&
app.selectedShapesArray?.some(s => !s.props.isLocked) && (
<>
<LSUI.ContextMenuItem>
<LSUI.ContextMenuItem className={'tl-menu-button-row-wrap'}>
<div className="tl-menu-button-row pb-0">
<Button
tooltip={t('whiteboard/align-left')}

View File

@ -110,8 +110,16 @@ html[data-theme='light'] {
@apply pl-4 !important;
}
.tl-menu-button-row-wrap {
@apply flex flex-col;
}
.tl-menu-button-row {
@apply flex justify-between py-1;
@apply flex justify-between py-1 gap-[26px] opacity-80 hover:opacity-100;
.ti {
@apply text-lg;
}
}
.tl-menu {