From 457349099dd8eaeab7d8359b7e87682acbc90f72 Mon Sep 17 00:00:00 2001 From: lianahus Date: Tue, 14 Feb 2023 11:09:59 +0100 Subject: [PATCH] scroll for workspaces list --- .../remix-ui/helper/src/lib/components/custom-dropdown.tsx | 3 ++- libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx b/libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx index 9bb3ef0c84..9c75e11fff 100644 --- a/libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx +++ b/libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx @@ -38,6 +38,7 @@ export const CustomIconsToggle = React.forwardRef(({ onClick, icon, className = // Dropdown needs access to the DOM of the Menu to measure it export const CustomMenu = React.forwardRef( ({ children, style, className, 'aria-labelledby': labeledBy }: { children: React.ReactNode, style?: React.CSSProperties, className: string, 'aria-labelledby'?: string }, ref: Ref) => { + const height = window.innerHeight * 0.6 return (
-
    +
      { children } diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index ea0e818873..07c1b8ca85 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -451,7 +451,12 @@ export function Workspace () {
- + { selectedWorkspace ? selectedWorkspace.name : currentWorkspace === LOCALHOST ? formatNameForReadonly("localhost") : NO_WORKSPACE }