From d4263dd839ca63e4e07d53455d6917723a9b8f8c Mon Sep 17 00:00:00 2001 From: Clay Date: Wed, 2 Dec 2026 23:16:57 -0500 Subject: [PATCH] Chat panel: internal scrolling, fixed layout height --- public/index.html | 4 ++-- public/style.css | 21 +++++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/public/index.html b/public/index.html index ea4abfd..14419f1 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ Web OSCAR Chat - +
@@ -87,6 +87,6 @@
- + diff --git a/public/style.css b/public/style.css index a85944b..71d0300 100644 --- a/public/style.css +++ b/public/style.css @@ -95,9 +95,10 @@ main { padding: 1rem; max-width: 1600px; margin: 0 auto; } display: grid; grid-template-columns: 320px 1fr; gap: 1rem; - min-height: calc(100vh - 8rem); + height: calc(100vh - 8rem); + min-height: 500px; } -.sidebar { display: flex; flex-direction: column; gap: 1rem; min-width: 0; } +.sidebar { display: flex; flex-direction: column; gap: 1rem; min-width: 0; overflow-y: auto; padding-right: 0.2rem; } .sidebar-section { padding: 0.9rem; } .sidebar-section h2, .chat-header h2 { margin: 0 0 0.65rem 0; font-size: 0.95rem; color: #dce6f2; } .inline-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; } @@ -119,9 +120,10 @@ main { padding: 1rem; max-width: 1600px; margin: 0 auto; } .chat-panel { display: grid; - grid-template-rows: auto auto 1fr auto auto; - min-height: 60vh; + grid-template-rows: auto auto minmax(0, 1fr) auto auto; + min-height: 0; min-width: 0; + overflow: hidden; } .tabs-bar { border-bottom: 1px solid var(--border); @@ -166,11 +168,14 @@ main { padding: 1rem; max-width: 1600px; margin: 0 auto; } .chat-header h2 { margin: 0; font-size: 1rem; } .messages { padding: 1rem; - overflow: auto; + overflow-y: auto; + min-height: 0; display: flex; flex-direction: column; gap: 0.5rem; background: #171b22; + scrollbar-width: thin; + scrollbar-color: #4a5568 #171b22; } /* Classic AIM/IRC style */ @@ -254,7 +259,7 @@ main { padding: 1rem; max-width: 1600px; margin: 0 auto; } .toc-label { font-size: 0.8rem; } @media (max-width: 980px) { - .chat-layout { grid-template-columns: 1fr; } - .sidebar { order: 2; } - .chat-panel { min-height: 55vh; } + .chat-layout { grid-template-columns: 1fr; height: auto; min-height: 0; } + .sidebar { order: 2; overflow: visible; } + .chat-panel { min-height: 55vh; height: 70vh; } }