From c687d1184cd895fa3b53604f043a32152625e635 Mon Sep 17 00:00:00 2001 From: Carl Date: Thu, 13 Apr 2023 17:18:25 +0800 Subject: [PATCH] fix: notes and terms text display issues --- apps/storefront/src/pages/quote/components/QuoteNote.tsx | 3 +++ .../src/pages/quote/components/QuoteTermsAndConditions.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/storefront/src/pages/quote/components/QuoteNote.tsx b/apps/storefront/src/pages/quote/components/QuoteNote.tsx index 518c5163..b7c48835 100644 --- a/apps/storefront/src/pages/quote/components/QuoteNote.tsx +++ b/apps/storefront/src/pages/quote/components/QuoteNote.tsx @@ -89,6 +89,9 @@ export const QuoteNote = (props: QuoteNoteProps) => { variant="body1" style={{ whiteSpace: 'pre-line', + maxWidth: '338px', + maxHeight: '400px', + overflow: 'auto', }} > {quoteNotes} diff --git a/apps/storefront/src/pages/quote/components/QuoteTermsAndConditions.tsx b/apps/storefront/src/pages/quote/components/QuoteTermsAndConditions.tsx index eeb77ae7..326cd4e6 100644 --- a/apps/storefront/src/pages/quote/components/QuoteTermsAndConditions.tsx +++ b/apps/storefront/src/pages/quote/components/QuoteTermsAndConditions.tsx @@ -32,6 +32,9 @@ export const QuoteTermsAndConditions = (props: QuoteTermsAndConditionsProps) => variant="body1" style={{ whiteSpace: 'pre-line', + maxWidth: '338px', + maxHeight: '400px', + overflow: 'auto', }} > {quoteLegalTerms}