From b3bf4fca750fed5c42e708ce03dd979685a836ae Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 24 Nov 2025 20:26:13 +0200 Subject: [PATCH] better scroll + back-header on mobile --- .../tab_switcher/vertical_tab_switcher.jsx | 10 +++++++--- .../tab_switcher/vertical_tab_switcher.scss | 12 ++++++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/components/tab_switcher/vertical_tab_switcher.jsx b/src/components/tab_switcher/vertical_tab_switcher.jsx index 054e199b3..9367821a7 100644 --- a/src/components/tab_switcher/vertical_tab_switcher.jsx +++ b/src/components/tab_switcher/vertical_tab_switcher.jsx @@ -161,9 +161,13 @@ export default { return (
- {header} -
- {renderSlot} +
+ {header} +
+
+
+ {renderSlot} +
) diff --git a/src/components/tab_switcher/vertical_tab_switcher.scss b/src/components/tab_switcher/vertical_tab_switcher.scss index 3652c0228..669a49f73 100644 --- a/src/components/tab_switcher/vertical_tab_switcher.scss +++ b/src/components/tab_switcher/vertical_tab_switcher.scss @@ -30,6 +30,7 @@ .tab-content { align-self: center; + height: 100%; &:not(.-full-width) { max-width: 40em; @@ -52,10 +53,16 @@ } } - .tab-content-wrapper { + .tab-slot-wrapper { + flex: 1 1 auto; + height: 100%; + overflow-y: auto; display: flex; flex-direction: column; - overflow-y: auto; + } + + .tab-content-wrapper { + flex: 1 1 auto; height: 100%; &.-hidden { @@ -85,6 +92,7 @@ > .contents { display: block; flex-grow: 1; + flex-shrink: 1; } > .tabs {