From b58d188f0d936c98d849daba8651860d53f561b1 Mon Sep 17 00:00:00 2001 From: Vu Luong Date: Mon, 27 Feb 2023 15:13:44 -0800 Subject: [PATCH] fix(pageFilter): Fix overflow --- static/app/components/organizations/pageFilterBar.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/app/components/organizations/pageFilterBar.tsx b/static/app/components/organizations/pageFilterBar.tsx index 8bed29355f5cbb..d5708c11d80fda 100644 --- a/static/app/components/organizations/pageFilterBar.tsx +++ b/static/app/components/organizations/pageFilterBar.tsx @@ -37,7 +37,7 @@ const PageFilterBar = styled('div')<{condensed?: boolean}>` } & > * { - min-width: 7rem; + min-width: 0; flex-grow: 1; flex-shrink: 1; flex-basis: max-content; @@ -50,6 +50,11 @@ const PageFilterBar = styled('div')<{condensed?: boolean}>` flex-shrink: 1; } } + + /* Prevent date filter from shrinking below 6.5rem */ + &:last-child { + min-width: 6.5rem; + } } & > *:not(:first-child)::after {