From 32239b04aa84657f0485925749f4d65999f68477 Mon Sep 17 00:00:00 2001 From: Diego Medina Date: Wed, 13 Apr 2022 10:45:38 -0400 Subject: [PATCH] fix: improve the alerts & reports modal layout on small screens (#19294) --- 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 (