From e4fb112d6e95db7bb0832898573270fa5fdeeb1b Mon Sep 17 00:00:00 2001 From: Adela Almasan <88068998+adela-almasan@users.noreply.github.com> Date: Mon, 20 Nov 2023 12:01:25 -0600 Subject: [PATCH] Auto-generate: Scrollable history container (#77895) --- public/app/features/dashboard/components/GenAI/GenAIHistory.tsx | 1 + .../dashboard/components/GenAI/GenerationHistoryCarousel.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/public/app/features/dashboard/components/GenAI/GenAIHistory.tsx b/public/app/features/dashboard/components/GenAI/GenAIHistory.tsx index 5a91bf20c6b..8b688f6992b 100644 --- a/public/app/features/dashboard/components/GenAI/GenAIHistory.tsx +++ b/public/app/features/dashboard/components/GenAI/GenAIHistory.tsx @@ -186,6 +186,7 @@ const getStyles = (theme: GrafanaTheme2) => ({ display: 'flex', flexDirection: 'column', width: 520, + height: 250, // This is the space the footer height paddingBottom: 35, }), diff --git a/public/app/features/dashboard/components/GenAI/GenerationHistoryCarousel.tsx b/public/app/features/dashboard/components/GenAI/GenerationHistoryCarousel.tsx index b1506961954..c590ab04093 100644 --- a/public/app/features/dashboard/components/GenAI/GenerationHistoryCarousel.tsx +++ b/public/app/features/dashboard/components/GenAI/GenerationHistoryCarousel.tsx @@ -64,5 +64,7 @@ const getStyles = (theme: GrafanaTheme2) => ({ flexGrow: 3, whiteSpace: 'pre-wrap', marginTop: 20, + height: 110, + overflowY: 'scroll', }), });