From a014a8906cfbe6d9555da4f109d3b4ac7b8f1ee0 Mon Sep 17 00:00:00 2001 From: Dana Scheider Date: Fri, 7 Apr 2023 14:36:55 +1000 Subject: [PATCH 1/3] Dynamically truncate text to be the right length for the StyledSelect component --- .../__snapshots__/styledSelect.test.tsx.snap | 16 ++----- .../styledSelect/styledSelect.module.css | 4 +- .../styledSelect/styledSelect.test.tsx | 9 ++-- src/components/styledSelect/styledSelect.tsx | 44 ++++++++++++++----- .../dashboardLayout.test.tsx.snap | 24 +++------- .../dashboardLayout/dashboardLayout.test.tsx | 8 ++-- .../shoppingListsPage.test.tsx.snap | 16 ++----- .../shoppingListsPage.test.tsx | 6 +-- 8 files changed, 60 insertions(+), 67 deletions(-) diff --git a/src/components/styledSelect/__snapshots__/styledSelect.test.tsx.snap b/src/components/styledSelect/__snapshots__/styledSelect.test.tsx.snap index 61cc7883..d9b9d0d5 100644 --- a/src/components/styledSelect/__snapshots__/styledSelect.test.tsx.snap +++ b/src/components/styledSelect/__snapshots__/styledSelect.test.tsx.snap @@ -21,9 +21,7 @@ exports[`StyledSelect > when a default option is given > matches snapshot 1`] =

- My Game 2 -

+ />