Spaces:
Sleeping
Sleeping
Girish Jeswani commited on
Commit ·
0b5b8ef
1
Parent(s): dfe42d4
theme fixes
Browse files
phd-advisor-frontend/src/styles/ChatPage.css
CHANGED
|
@@ -1,11 +1,19 @@
|
|
| 1 |
|
| 2 |
/* Modern Chat Page Layout */
|
| 3 |
.modern-chat-page {
|
| 4 |
-
|
| 5 |
background: var(--bg-gradient);
|
| 6 |
display: flex;
|
| 7 |
flex-direction: column;
|
| 8 |
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
/* Floating Header */
|
|
@@ -22,6 +30,7 @@
|
|
| 22 |
align-items: center;
|
| 23 |
justify-content: space-between;
|
| 24 |
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
[data-theme="dark"] .floating-header {
|
|
@@ -153,7 +162,10 @@
|
|
| 153 |
padding-bottom: 140px; /* Space for floating input */
|
| 154 |
padding-left: 16px;
|
| 155 |
padding-right: 16px;
|
|
|
|
|
|
|
| 156 |
}
|
|
|
|
| 157 |
.export-dropdown {
|
| 158 |
z-index: 1000;
|
| 159 |
}
|
|
@@ -177,20 +189,89 @@
|
|
| 177 |
flex: 1;
|
| 178 |
display: flex;
|
| 179 |
flex-direction: column;
|
|
|
|
|
|
|
| 180 |
}
|
| 181 |
|
| 182 |
.messages-area {
|
| 183 |
flex: 1;
|
| 184 |
overflow: hidden;
|
|
|
|
| 185 |
}
|
| 186 |
|
| 187 |
.messages-scroll {
|
| 188 |
-
height: 100%;
|
| 189 |
overflow-y: auto;
|
|
|
|
| 190 |
padding: 20px;
|
| 191 |
-
padding-bottom: 40px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
}
|
| 193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
/* Message Components */
|
| 195 |
.orchestrator-message {
|
| 196 |
display: flex;
|
|
@@ -444,6 +525,7 @@
|
|
| 444 |
display: flex;
|
| 445 |
height: 100vh;
|
| 446 |
overflow: hidden;
|
|
|
|
| 447 |
}
|
| 448 |
|
| 449 |
.main-chat-area {
|
|
@@ -453,6 +535,7 @@
|
|
| 453 |
flex-direction: column;
|
| 454 |
height: 100vh;
|
| 455 |
transition: margin-left 0.3s ease;
|
|
|
|
| 456 |
}
|
| 457 |
|
| 458 |
/* Session title display in header */
|
|
@@ -514,8 +597,14 @@
|
|
| 514 |
justify-content: center;
|
| 515 |
gap: 12px;
|
| 516 |
padding: 20px;
|
| 517 |
-
color: var(--text-secondary
|
| 518 |
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 519 |
}
|
| 520 |
|
| 521 |
.dark .loading-session {
|
|
|
|
| 1 |
|
| 2 |
/* Modern Chat Page Layout */
|
| 3 |
.modern-chat-page {
|
| 4 |
+
height: 100%;
|
| 5 |
background: var(--bg-gradient);
|
| 6 |
display: flex;
|
| 7 |
flex-direction: column;
|
| 8 |
position: relative;
|
| 9 |
+
overflow: hidden; /* Prevent body overflow */
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
[data-theme="dark"] .modern-chat-page {
|
| 13 |
+
background: var(--bg-gradient);
|
| 14 |
+
will-change: auto;
|
| 15 |
+
-webkit-transform: translateZ(0);
|
| 16 |
+
transform: translateZ(0);
|
| 17 |
}
|
| 18 |
|
| 19 |
/* Floating Header */
|
|
|
|
| 30 |
align-items: center;
|
| 31 |
justify-content: space-between;
|
| 32 |
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
| 33 |
+
flex-shrink: 0;
|
| 34 |
}
|
| 35 |
|
| 36 |
[data-theme="dark"] .floating-header {
|
|
|
|
| 162 |
padding-bottom: 140px; /* Space for floating input */
|
| 163 |
padding-left: 16px;
|
| 164 |
padding-right: 16px;
|
| 165 |
+
overflow: hidden; /* Critical for proper scrolling */
|
| 166 |
+
min-height: 0; /* Allow flex child to shrink */
|
| 167 |
}
|
| 168 |
+
|
| 169 |
.export-dropdown {
|
| 170 |
z-index: 1000;
|
| 171 |
}
|
|
|
|
| 189 |
flex: 1;
|
| 190 |
display: flex;
|
| 191 |
flex-direction: column;
|
| 192 |
+
overflow: hidden;
|
| 193 |
+
min-height: 0;
|
| 194 |
}
|
| 195 |
|
| 196 |
.messages-area {
|
| 197 |
flex: 1;
|
| 198 |
overflow: hidden;
|
| 199 |
+
min-height: 0;
|
| 200 |
}
|
| 201 |
|
| 202 |
.messages-scroll {
|
| 203 |
+
height: 100%; /* Use full height of parent */
|
| 204 |
overflow-y: auto;
|
| 205 |
+
overflow-x: hidden;
|
| 206 |
padding: 20px;
|
| 207 |
+
padding-bottom: 40px;
|
| 208 |
+
/* Ensure smooth scrolling with proper background */
|
| 209 |
+
background: var(--bg-gradient);
|
| 210 |
+
scroll-behavior: smooth;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
.messages-container {
|
| 214 |
+
flex: 1;
|
| 215 |
+
display: flex;
|
| 216 |
+
flex-direction: column;
|
| 217 |
+
overflow: hidden;
|
| 218 |
+
min-height: 0; /* Critical for flex layout */
|
| 219 |
+
background: var(--bg-gradient); /* Ensure dark mode background */
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.messages-list {
|
| 223 |
+
flex: 1;
|
| 224 |
+
overflow: hidden;
|
| 225 |
+
min-height: 0; /* Allow proper shrinking */
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
[data-theme="dark"] .messages-scroll,
|
| 229 |
+
[data-theme="dark"] .messages-container,
|
| 230 |
+
[data-theme="dark"] .main-content {
|
| 231 |
+
background: var(--bg-gradient);
|
| 232 |
+
will-change: auto;
|
| 233 |
+
-webkit-transform: translateZ(0);
|
| 234 |
+
transform: translateZ(0);
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
/* Smooth scrolling with fixed background */
|
| 238 |
+
@media (prefers-reduced-motion: no-preference) {
|
| 239 |
+
.messages-scroll {
|
| 240 |
+
scroll-behavior: smooth;
|
| 241 |
+
}
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
/* Scrollbar styling for dark mode */
|
| 245 |
+
[data-theme="dark"] .messages-scroll::-webkit-scrollbar {
|
| 246 |
+
width: 8px;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
[data-theme="dark"] .messages-scroll::-webkit-scrollbar-track {
|
| 250 |
+
background: var(--bg-secondary);
|
| 251 |
+
border-radius: 4px;
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
[data-theme="dark"] .messages-scroll::-webkit-scrollbar-thumb {
|
| 255 |
+
background: var(--border-primary);
|
| 256 |
+
border-radius: 4px;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
[data-theme="dark"] .messages-scroll::-webkit-scrollbar-thumb:hover {
|
| 260 |
+
background: var(--text-tertiary);
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
/* Prevent background shift during scroll */
|
| 264 |
+
.messages-scroll * {
|
| 265 |
+
background-attachment: fixed;
|
| 266 |
}
|
| 267 |
|
| 268 |
+
/* Ensure scroll anchor area */
|
| 269 |
+
.messages-end-anchor {
|
| 270 |
+
height: 1px;
|
| 271 |
+
background: transparent;
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
|
| 275 |
/* Message Components */
|
| 276 |
.orchestrator-message {
|
| 277 |
display: flex;
|
|
|
|
| 525 |
display: flex;
|
| 526 |
height: 100vh;
|
| 527 |
overflow: hidden;
|
| 528 |
+
background: var(--bg-gradient);
|
| 529 |
}
|
| 530 |
|
| 531 |
.main-chat-area {
|
|
|
|
| 535 |
flex-direction: column;
|
| 536 |
height: 100vh;
|
| 537 |
transition: margin-left 0.3s ease;
|
| 538 |
+
overflow: hidden;
|
| 539 |
}
|
| 540 |
|
| 541 |
/* Session title display in header */
|
|
|
|
| 597 |
justify-content: center;
|
| 598 |
gap: 12px;
|
| 599 |
padding: 20px;
|
| 600 |
+
color: var(--text-secondary);
|
| 601 |
font-size: 14px;
|
| 602 |
+
background: var(--bg-gradient);
|
| 603 |
+
}
|
| 604 |
+
|
| 605 |
+
[data-theme="dark"] .loading-session {
|
| 606 |
+
color: var(--text-secondary-dark);
|
| 607 |
+
background: var(--bg-gradient);
|
| 608 |
}
|
| 609 |
|
| 610 |
.dark .loading-session {
|