Skip to content

Commit c8ea209

Browse files
author
Mathis Pierron
committed
fix: add shadow to sidebars
1 parent 023a656 commit c8ea209

4 files changed

Lines changed: 25 additions & 5 deletions

File tree

src/application/components/SideBar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.side-bar {
2-
@apply flex select-none flex-col;
2+
@apply z-sidebar flex select-none flex-col bg-side-bar-bg-primary;
33
}
44

55
.side-bar .icon {

src/application/sidebar/LeftSidePanelWrapper.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export function LeftSidePanelWrapper() {
4747
<>
4848
<SideBar
4949
activePane={primaryPaneCollapsed ? null : primaryPane}
50-
className={cx({ 'border-r border-r-side-bar-border': !primaryPaneCollapsed })}
50+
className={cx({
51+
'border-r border-r-side-bar-border': !primaryPaneCollapsed,
52+
'shadow-default': primaryPaneCollapsed,
53+
})}
5154
footerItems={[
5255
// TODO: Implement Keybinds screen
5356
{
@@ -67,7 +70,13 @@ export function LeftSidePanelWrapper() {
6770
]}
6871
onItemClick={handleSideBarClick}
6972
/>
70-
<Panel collapsible order={1} ref={leftPanelRef} onCollapse={(collapsed) => setPrimaryPaneCollapsed(collapsed)}>
73+
<Panel
74+
className="z-sidebar-panel shadow-default"
75+
collapsible
76+
order={1}
77+
ref={leftPanelRef}
78+
onCollapse={(collapsed) => setPrimaryPaneCollapsed(collapsed)}
79+
>
7180
{primaryPane === 'Explorer' && <ExplorerPanel />}
7281
{primaryPane === 'References' && <ReferencesPanel />}
7382
</Panel>

src/application/sidebar/RightSidePanelWrapper.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,22 @@ export function RightSidePanelWrapper() {
4141
return (
4242
<>
4343
<VerticalResizeHandle transparent />
44-
<Panel collapsible order={3} ref={rightPanelRef} onCollapse={(collapsed) => setSecondaryPaneCollapsed(collapsed)}>
44+
<Panel
45+
className="z-sidebar-panel shadow-default"
46+
collapsible
47+
order={3}
48+
ref={rightPanelRef}
49+
onCollapse={(collapsed) => setSecondaryPaneCollapsed(collapsed)}
50+
>
4551
{secondaryPane === 'Rewriter' && <RewriterPanel />}
4652
{secondaryPane === 'Chatbot' && <ChatbotPanel />}
4753
</Panel>
4854
<SideBar
4955
activePane={secondaryPaneCollapsed ? null : secondaryPane}
50-
className={cx({ 'border-l border-l-side-bar-border': !secondaryPaneCollapsed })}
56+
className={cx({
57+
'border-l border-l-side-bar-border': !secondaryPaneCollapsed,
58+
'shadow-default': secondaryPaneCollapsed,
59+
})}
5160
items={[
5261
{ pane: 'Rewriter', Icon: <PenIcon /> },
5362
{ pane: 'Chatbot', Icon: <BotIcon /> },

tailwind.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ export default {
191191
notifications: 88888,
192192
'drop-zone': 55555,
193193
'resize-handle': 44444,
194+
sidebar: 11,
195+
'sidebar-panel': 10,
194196
},
195197
},
196198
},

0 commit comments

Comments
 (0)