From ac57386702705011cd305811f43dd2b6a0e8ded4 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Fri, 6 Dec 2024 13:36:24 -0500 Subject: [PATCH] lint: comment charts drawer width logic --- src/js/components/Overview/Drawer/ManageChartsDrawer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/components/Overview/Drawer/ManageChartsDrawer.tsx b/src/js/components/Overview/Drawer/ManageChartsDrawer.tsx index 370b0772..c2720c3b 100644 --- a/src/js/components/Overview/Drawer/ManageChartsDrawer.tsx +++ b/src/js/components/Overview/Drawer/ManageChartsDrawer.tsx @@ -24,6 +24,8 @@ const ManageChartsDrawer = ({ onManageDrawerClose, manageDrawerVisible }: Manage placement="right" onClose={onManageDrawerClose} open={manageDrawerVisible} + // If we're on a small device, make the drawer full-screen width instead of a fixed width. + // The default value for Ant Design is 372. width={isSmallScreen ? '100vw' : 400} extra={