From d9973a3d12d87c29a55130d836b9ef8d429c0476 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 19 Nov 2024 12:52:49 +0100 Subject: [PATCH] ui/sidebar: adds full height to drawer and min-width to new sidebar component --- .../Sidebar/SidebarFlyout/index.tsx | 2 +- .../src/components/Sidebar/SidebarHeader.tsx | 22 ++++-- .../components/Sidebar/SidebarListItem.tsx | 15 ++-- .../Sidebar/css/sidebar-list-item.css | 8 +- .../Sidebar/css/sidebar-profile.css | 4 + .../src/components/Sidebar/css/sidebar.css | 2 + .../app/src/components/Sidebar/index.tsx | 77 +++++++++++-------- .../Typography/css/typography-color.css | 12 +-- .../typography-hierarchy/typography-body.css | 4 +- pkgs/webview-ui/app/src/index.css | 21 ++++- pkgs/webview-ui/app/src/layout/layout.tsx | 6 +- 11 files changed, 116 insertions(+), 57 deletions(-) diff --git a/pkgs/webview-ui/app/src/components/Sidebar/SidebarFlyout/index.tsx b/pkgs/webview-ui/app/src/components/Sidebar/SidebarFlyout/index.tsx index 0ee49eb8d..bf047e246 100644 --- a/pkgs/webview-ui/app/src/components/Sidebar/SidebarFlyout/index.tsx +++ b/pkgs/webview-ui/app/src/components/Sidebar/SidebarFlyout/index.tsx @@ -5,7 +5,7 @@ export const SidebarFlyout= () =>{ return diff --git a/pkgs/webview-ui/app/src/components/Sidebar/SidebarHeader.tsx b/pkgs/webview-ui/app/src/components/Sidebar/SidebarHeader.tsx index 8bc0a7be2..9631865db 100644 --- a/pkgs/webview-ui/app/src/components/Sidebar/SidebarHeader.tsx +++ b/pkgs/webview-ui/app/src/components/Sidebar/SidebarHeader.tsx @@ -1,10 +1,10 @@ -import {createSignal} from 'solid-js' +import {createSignal, Show} from 'solid-js' import {Typography} from '@/src/components/Typography' import {SidebarFlyout} from './SidebarFlyout' interface SidebarHeader { - clanName?: string + clanName: string } export const SidebarHeader = (props:SidebarHeader)=>{ @@ -15,15 +15,21 @@ export const SidebarHeader = (props:SidebarHeader)=>{ function handleClick(){ toggleFlyout(!showFlyout()) } + + const renderClanProfile = () =>
+ + {clanName.slice(0,1)} + +
+ + + const renderClanTitle = () => + {clanName} return