Skip to content

Commit

Permalink
lint: comment charts drawer width logic
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Dec 6, 2024
1 parent 41dfda5 commit ac57386
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/components/Overview/Drawer/ManageChartsDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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={
<Space>
Expand Down

0 comments on commit ac57386

Please sign in to comment.