nixaut-codelabs commited on
Commit
06a659f
·
verified ·
1 Parent(s): baa51d8

Don't just leave the chat page on the right, fit it completely in the middle. The sidebar will remain fixed on the left, but still. Don't overlap them.

Browse files
Files changed (2) hide show
  1. index.html +2 -2
  2. style.css +5 -0
index.html CHANGED
@@ -63,9 +63,9 @@
63
  <div class="flex h-screen relative z-10">
64
  <custom-sidebar></custom-sidebar>
65
  <!-- Chat Container -->
66
- <div class="flex-1 flex bg-zinc-950 relative overflow-hidden" style="margin-left: 260px;">
67
  <!-- Chat Section -->
68
- <div class="flex-1 flex flex-col relative overflow-hidden max-h-screen">
69
  <!-- Messages Container -->
70
  <div id="chatContainer" class="flex-1 overflow-y-auto scroll-smooth p-4 space-y-4" style="scrollbar-width: thin; scrollbar-color: #525252 #18181b;">
71
  <!-- AI Welcome Message -->
 
63
  <div class="flex h-screen relative z-10">
64
  <custom-sidebar></custom-sidebar>
65
  <!-- Chat Container -->
66
+ <div class="flex-1 flex justify-center bg-zinc-950 relative overflow-hidden" style="margin-left: 260px;">
67
  <!-- Chat Section -->
68
+ <div class="w-full max-w-6xl flex flex-col relative overflow-hidden max-h-screen">
69
  <!-- Messages Container -->
70
  <div id="chatContainer" class="flex-1 overflow-y-auto scroll-smooth p-4 space-y-4" style="scrollbar-width: thin; scrollbar-color: #525252 #18181b;">
71
  <!-- AI Welcome Message -->
style.css CHANGED
@@ -223,6 +223,11 @@ body {
223
  overflow: hidden;
224
  max-height: 100vh;
225
  }
 
 
 
 
 
226
  /* Fixed sidebar layout */
227
  custom-sidebar {
228
  position: fixed !important;
 
223
  overflow: hidden;
224
  max-height: 100vh;
225
  }
226
+
227
+ /* Chat Width Constraints */
228
+ .max-w-6xl {
229
+ max-width: 72rem;
230
+ }
231
  /* Fixed sidebar layout */
232
  custom-sidebar {
233
  position: fixed !important;