mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix icon alignment for context menu items
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user