From 96cea9b84b9dde7ff11fefb6b645827a75b829cd Mon Sep 17 00:00:00 2001 From: Sanghyeon Lee Date: Sat, 4 Apr 2020 02:58:50 +0900 Subject: [PATCH] Make left panel height flexible to avoid overflow (#1169) * Make overall left menu scrollable * Make only mid-left panel scrollable * Update src/styles.scss * Update src/styles.scss * Update src/components/LayerUI.tsx * Remove unused class * Move the scrolling role to Island Co-authored-by: Lipis --- src/components/Island.tsx | 10 +++++++--- src/components/LayerUI.tsx | 9 +++------ src/styles.scss | 5 +++++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/Island.tsx b/src/components/Island.tsx index f59cb657..c4ef6ebc 100644 --- a/src/components/Island.tsx +++ b/src/components/Island.tsx @@ -2,12 +2,16 @@ import "./Island.css"; import React from "react"; -type IslandProps = { children: React.ReactNode; padding?: number }; +type IslandProps = { + children: React.ReactNode; + padding?: number; + className?: string; +}; export const Island = React.forwardRef( - ({ children, padding }, ref) => ( + ({ children, padding, className }, ref) => (
diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index fce230a6..2786b198 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -116,7 +116,7 @@ export const LayerUI = React.memo(
-
+
@@ -136,11 +136,8 @@ export const LayerUI = React.memo(
{showSelectedShapeActions(appState, elements) && ( -
- +
+