From a932cdd30772e89c053d86742d0c0b6ddf719833 Mon Sep 17 00:00:00 2001 From: Diego Medina Date: Mon, 21 Mar 2022 20:25:11 -0300 Subject: [PATCH] fix: improve the alerts & reports modal layout on small screens --- superset-frontend/src/components/TimezoneSelector/index.tsx | 4 +++- superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/components/TimezoneSelector/index.tsx b/superset-frontend/src/components/TimezoneSelector/index.tsx index 119cb50fbce37..b33981e721006 100644 --- a/superset-frontend/src/components/TimezoneSelector/index.tsx +++ b/superset-frontend/src/components/TimezoneSelector/index.tsx @@ -104,11 +104,13 @@ const matchTimezoneToOptions = (timezone: string) => export type TimezoneSelectorProps = { onTimezoneChange: (value: string) => void; timezone?: string | null; + minWidth?: string; }; export default function TimezoneSelector({ onTimezoneChange, timezone, + minWidth = MIN_SELECT_WIDTH, // smallest size for current values }: TimezoneSelectorProps) { const validTimezone = useMemo( () => matchTimezoneToOptions(timezone || moment.tz.guess()), @@ -125,7 +127,7 @@ export default function TimezoneSelector({ return (