mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
fix icon alignment for context menu items
This commit is contained in:
parent
12d293a74c
commit
5ae21bd224
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { Box, Group, UnstyledButton, UnstyledButtonProps } from '@mantine/core';
|
import { Box, Flex, Group, UnstyledButton, UnstyledButtonProps } from '@mantine/core';
|
||||||
import { motion, Variants } from 'framer-motion';
|
import { motion, Variants } from 'framer-motion';
|
||||||
import { ComponentPropsWithoutRef, forwardRef, ReactNode, Ref } from 'react';
|
import { ComponentPropsWithoutRef, forwardRef, ReactNode, Ref } from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
@ -81,8 +81,8 @@ export const ContextMenuButton = forwardRef(
|
||||||
ref={ref}
|
ref={ref}
|
||||||
>
|
>
|
||||||
<Group position="apart">
|
<Group position="apart">
|
||||||
<Group spacing="md">
|
<Group align="center">
|
||||||
<Box>{leftIcon}</Box>
|
<Flex>{leftIcon}</Flex>
|
||||||
<Box mr="2rem">{children}</Box>
|
<Box mr="2rem">{children}</Box>
|
||||||
</Group>
|
</Group>
|
||||||
<Box>{rightIcon}</Box>
|
<Box>{rightIcon}</Box>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue