feat: improve mobile board experience
This commit is contained in:
1 parent
7d5ec15017
commit
2e3dca3e87
28 files changed
+979
-258
No files matched your search
@@ -25,7 +25,7 @@ const headerButtonActionIconProps: ActionIconProps = {
|
||||
variant: "subtle",
|
||||
style: { border: "none" },
|
||||
color: "gray",
|
||||
size: "lg",
|
||||
size: 44,
|
||||
};
|
||||
|
||||
export const HeaderButton = forwardRef<HTMLButtonElement, HeaderButtonProps>((props, ref) => {
|
||||
@@ -34,15 +34,15 @@ export const HeaderButton = forwardRef<HTMLButtonElement, HeaderButtonProps>((pr
|
||||
<ActionIcon
|
||||
ref={ref as ForwardedRef<HTMLAnchorElement>}
|
||||
component={Link}
|
||||
{...props}
|
||||
{...headerButtonActionIconProps}
|
||||
{...props}
|
||||
>
|
||||
{props.children}
|
||||
</ActionIcon>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<ActionIcon ref={ref} {...props} {...headerButtonActionIconProps}>
|
||||
<ActionIcon ref={ref} {...headerButtonActionIconProps} {...props}>
|
||||
{props.children}
|
||||
</ActionIcon>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import type { PropsWithChildren } from "react";
|
||||
|
||||
import { useIsMobileBoard } from "../../board/use-mobile-board";
|
||||
|
||||
export const ResponsiveUserButton = ({
|
||||
hideOnMobileBoard,
|
||||
children,
|
||||
}: PropsWithChildren<{ hideOnMobileBoard: boolean }>) => {
|
||||
const isMobileBoard = useIsMobileBoard();
|
||||
return hideOnMobileBoard && isMobileBoard ? null : children;
|
||||
};
|
||||
Reference in new issue
Block a user