diff --git a/libs/components/board-draw/src/components/command-panel/MoveCoverage.tsx b/libs/components/board-draw/src/components/command-panel/MoveCoverage.tsx
index d5faf978e7..cbca4224fa 100644
--- a/libs/components/board-draw/src/components/command-panel/MoveCoverage.tsx
+++ b/libs/components/board-draw/src/components/command-panel/MoveCoverage.tsx
@@ -1,44 +1,40 @@
import type { TldrawApp } from '@toeverything/components/board-state';
import type { TDShape } from '@toeverything/components/board-types';
import {
- HeadingOneIcon,
- HeadingThreeIcon,
- HeadingTwoIcon,
- LockIcon,
- TextFontIcon,
+ BringForwardIcon,
+ BringToFrontIcon,
+ LayersIcon,
+ SendBackwardIcon,
+ SendToBackIcon,
} from '@toeverything/components/icons';
-import {
- IconButton,
- Popover,
- styled,
- Tooltip,
-} from '@toeverything/components/ui';
+import { IconButton, Popover, Tooltip } from '@toeverything/components/ui';
+import { AlignPanel } from '../align-panel';
interface FontSizeConfigProps {
app: TldrawApp;
shapes: TDShape[];
}
-const _fontSizes = [
+const AlignPanelArr = [
{
- name: 'To Front',
- value: 'tofront',
- icon: ,
+ title: 'To Front',
+ name: 'tofront',
+ icon: ,
},
{
- name: 'Forward',
- value: 'forward',
- icon: ,
+ title: 'Forward',
+ name: 'forward',
+ icon: ,
},
{
- name: 'Backward',
- value: 'backward',
- icon: ,
+ title: 'Backward',
+ name: 'backward',
+ icon: ,
},
{
- name: 'To Back',
- value: 'toback',
- icon: ,
+ title: 'To Back',
+ name: 'toback',
+ icon: ,
},
];
@@ -65,45 +61,17 @@ export const MoveCoverageConfig = ({ app, shapes }: FontSizeConfigProps) => {
trigger="hover"
placement="bottom-start"
content={
-
- {_fontSizes.map(fontSize => {
- return (
- moveCoverage(fontSize.value)}
- >
- {/* {fontSize.icon} */}
- {fontSize.name}
-
- );
- })}
-
+
}
>
-
+
-
+
);
};
-
-const ListItemContainer = styled('div')(({ theme }) => ({
- display: 'flex',
- alignItems: 'center',
- cursor: 'pointer',
- height: '32px',
- padding: '4px 12px',
- color: theme.affine.palette.icons,
-
- // eslint-disable-next-line @typescript-eslint/naming-convention
- '&:hover': {
- backgroundColor: theme.affine.palette.hover,
- },
-}));
-
-const ListItemTitle = styled('span')(({ theme }) => ({
- marginLeft: '12px',
- color: theme.affine.palette.primaryText,
-}));