We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1181e0 commit 747f7f1Copy full SHA for 747f7f1
renderer/ui/InfoDrawer/InfoDrawer.tsx
@@ -29,18 +29,19 @@ const InfoButton: React.FC<InfoButtonProps> = ({ children }) => {
29
const { formatMessage } = useIntl();
30
const { isOpen, onOpen, onClose } = useDisclosure();
31
const displayMode = useBreakpointValue({
32
- base: "mobile",
33
- md: "tablet",
34
- lg: "desktop",
+ base: "sm",
+ md: "md",
+ lg: "lg",
35
});
36
37
- if (displayMode === "desktop") {
+ // Large display mode shows no drawer
38
+ if (displayMode === "lg") {
39
return <Box>{children}</Box>;
40
}
41
42
return (
43
<>
- {displayMode === "mobile" ? (
44
+ {displayMode === "sm" ? (
45
<IconButton
46
icon={<MdInfo />}
47
aria-label={formatMessage(messages.details)}
0 commit comments