make sure there's enough room to show all buttons

This commit is contained in:
Athou
2023-06-27 08:21:05 +02:00
parent 3e903fc6bc
commit 970043467c

View File

@@ -20,7 +20,7 @@ interface ActionButtonProps {
export const ActionButton = forwardRef<HTMLButtonElement, ActionButtonProps>((props: ActionButtonProps, ref) => {
const theme = useMantineTheme()
const variant = props.variant ?? "subtle"
const mobile = useMobile(theme.breakpoints.xl)
const mobile = useMobile("1600px")
const iconOnly = (mobile && !props.showLabelOnMobile) || (!mobile && props.hideLabelOnDesktop)
return iconOnly ? (
<Tooltip label={props.label} openDelay={500}>