19783: Use flexbox to ensure single scrollable area in tree picker.
authorStephen Smith <stephen@curii.com>
Wed, 14 Dec 2022 19:33:51 +0000 (14:33 -0500)
committerStephen Smith <stephen@curii.com>
Wed, 14 Dec 2022 19:33:51 +0000 (14:33 -0500)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

src/views-components/projects-tree-picker/projects-tree-picker.tsx

index 6ef295be56356e2619b082c822ff1c0fc9ad63cb..9ac0b64fc0e580fcdd4dc64e5db82d5319a3510c 100644 (file)
@@ -81,7 +81,9 @@ type CssRules = 'pickerHeight' | 'searchFlex' | 'scrolledBox';
 
 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     pickerHeight: {
-        height: "calc(70vh - 100px)"
+        height: "100%",
+        display: "flex",
+        flexDirection: "column",
     },
     searchFlex: {
         display: "flex",
@@ -89,7 +91,6 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         paddingBottom: "1em"
     },
     scrolledBox: {
-        height: "calc(100% - 50px)",
         overflow: "scroll"
     }
 });