Skip to content

Commit 39446e1

Browse files
committed
improved placement of left sidepannels
1 parent d5be95d commit 39446e1

File tree

4 files changed

+30
-21
lines changed

4 files changed

+30
-21
lines changed

app/templates/components/styles.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
.workspace-grid {
9191
display: flex;
9292
min-height: 600px;
93+
height: 100%;
9394
width: 100%;
9495
gap: 0; /* No gaps - panels share borders */
9596
}
@@ -99,7 +100,9 @@
99100
flex: 1.2 1 24%; /* Takes 24% of available width */
100101
min-width: 240px; /* Minimum: 240px */
101102
max-width: 380px; /* Maximum: 380px */
102-
overflow: auto;
103+
overflow: hidden; /* Changed from auto to hidden since inner divs handle scroll */
104+
display: flex;
105+
flex-direction: column;
103106
}
104107

105108
/* Editor panel (center) - 52% of container width */

app/templates/components/workspace.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
</div>
2727

2828
<!-- Editor Container -->
29-
<div class="bg-white border-2 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] relative z-0">
29+
<div class="bg-white border-2 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] relative z-0" style="height: 600px;">
3030
<!-- Three-panel layout inside container -->
31-
<div class="workspace-grid">
31+
<div class="workspace-grid" style="height: 100%;">
3232
{% include 'components/workspace_files.html' %}
3333
{% include 'components/workspace_editor.html' %}
3434
{% include 'components/workspace_actions.html' %}

app/templates/components/workspace_actions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Right Panel: Add tools -->
2-
<div class="workspace-actions">
3-
<div class="p-4">
2+
<div class="workspace-actions" style="height: 100%; display: flex; flex-direction: column;">
3+
<div class="p-4 flex-1 overflow-y-auto">
44
<h3 class="text-lg font-black text-black mb-4">Add tools</h3>
55

66
<!-- QuickAction Section - Search Bar -->

app/templates/components/workspace_files.html

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Left Panel: File System -->
2-
<div class="workspace-sidebar bg-cyan-50 border-r-2 border-black p-4">
3-
<div class="flex justify-between items-center mb-3">
2+
<div class="workspace-sidebar bg-cyan-50 border-r-2 border-black flex flex-col" style="height: 100%;">
3+
<div class="flex justify-between items-center mb-3 px-4 pt-4">
44
<h3 class="text-lg font-black text-black">Files</h3>
55
<div class="flex gap-2">
66
<button id="files-prev-btn" class="w-6 h-6 bg-gray-200 border-2 border-black text-black font-bold flex items-center justify-center shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-[1px_1px_0px_0px_rgba(0,0,0,1)] hover:shadow-[3px_3px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[-1px] hover:translate-y-[-1px] active:shadow-[1px_1px_0px_0px_rgba(0,0,0,1)] active:translate-x-[1px] active:translate-y-[1px] transition-all" title="Previous" disabled>
@@ -15,24 +15,30 @@ <h3 class="text-lg font-black text-black">Files</h3>
1515
</div>
1616
</div>
1717

18-
<div class="bg-white border-2 border-black p-3 h-48 overflow-y-auto mb-3">
19-
<div id="file-tree" class="text-sm">
20-
<!-- File tree will be populated here -->
18+
<!-- File tree section with New File button -->
19+
<div class="flex-1 overflow-hidden flex flex-col px-4 pb-3" style="min-height: 0;">
20+
<div class="bg-white border-2 border-black p-3 mb-3 overflow-y-auto" style="min-height: 200px; max-height: 900px;">
21+
<div id="file-tree" class="text-sm">
22+
<!-- File tree will be populated here -->
23+
</div>
24+
<div id="files-empty-state" class="text-center text-gray-500 text-sm py-8 hidden">
25+
No files yet. Use Quick Actions to add files.
26+
</div>
2127
</div>
22-
<div id="files-empty-state" class="text-center text-gray-500 text-sm py-8 hidden">
23-
No files yet. Use Quick Actions to add files.
28+
29+
<div class="flex gap-2">
30+
<button id="new-file-button" class="w-full px-3 py-2 bg-cyan-400 border-2 border-black text-black font-bold shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] hover:shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[-1px] hover:translate-y-[-1px] active:shadow-[1px_1px_0px_0px_rgba(0,0,0,1)] active:translate-x-[1px] active:translate-y-[1px] transition-all flex items-center justify-center gap-1 text-sm">
31+
<span class="mdi mdi-file-plus text-base"></span>
32+
<span>New File</span>
33+
</button>
2434
</div>
35+
36+
<!-- Empty space filler that takes remaining room -->
37+
<div class="flex-1"></div>
2538
</div>
2639

27-
<div class="flex gap-2">
28-
<button id="new-file-button" class="w-full px-3 py-2 bg-cyan-400 border-2 border-black text-black font-bold shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] hover:shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[-1px] hover:translate-y-[-1px] active:shadow-[1px_1px_0px_0px_rgba(0,0,0,1)] active:translate-x-[1px] active:translate-y-[1px] transition-all flex items-center justify-center gap-1 text-sm">
29-
<span class="mdi mdi-file-plus text-base"></span>
30-
<span>New File</span>
31-
</button>
32-
</div>
33-
34-
<!-- Context selector relocated here -->
35-
<div class="mt-4 pt-4 border-t-2 border-black">
40+
<!-- Context selector sticks to bottom -->
41+
<div class="p-4 border-t-2 border-black bg-cyan-50" style="flex-shrink: 0;">
3642
<div class="flex flex-col gap-2">
3743
<div class="flex justify-between items-center mb-1">
3844
<label class="text-sm font-black text-black">CONTEXT</label>

0 commit comments

Comments
 (0)