Spaces:
Sleeping
Sleeping
fix text bubble issue
Browse files- src/App.css +43 -1
src/App.css
CHANGED
|
@@ -215,12 +215,15 @@ body, html, #root {
|
|
| 215 |
.bubble {
|
| 216 |
padding: 0.75rem 1rem;
|
| 217 |
border-radius: 12px; /* nicer, smoother */
|
| 218 |
-
max-width:
|
| 219 |
line-height: 1.6; /* improved readability */
|
| 220 |
word-wrap: break-word; /* prevent overflow */
|
|
|
|
| 221 |
display: flex;
|
|
|
|
| 222 |
align-items: flex-start;
|
| 223 |
gap: 8px;
|
|
|
|
| 224 |
}
|
| 225 |
|
| 226 |
.message.user .bubble {
|
|
@@ -233,6 +236,42 @@ body, html, #root {
|
|
| 233 |
color: #f0f0f0;
|
| 234 |
}
|
| 235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
/* Debug panel styles */
|
| 237 |
.debug {
|
| 238 |
margin-top: 0.25rem;
|
|
@@ -345,6 +384,9 @@ body, html, #root {
|
|
| 345 |
background: rgba(0, 0, 0, 0.55);
|
| 346 |
border-radius: 6px;
|
| 347 |
overflow-x: auto;
|
|
|
|
|
|
|
|
|
|
| 348 |
}
|
| 349 |
|
| 350 |
.message .bubble pre code {
|
|
|
|
| 215 |
.bubble {
|
| 216 |
padding: 0.75rem 1rem;
|
| 217 |
border-radius: 12px; /* nicer, smoother */
|
| 218 |
+
max-width: 90%;
|
| 219 |
line-height: 1.6; /* improved readability */
|
| 220 |
word-wrap: break-word; /* prevent overflow */
|
| 221 |
+
overflow-wrap: break-word;
|
| 222 |
display: flex;
|
| 223 |
+
flex-direction: column;
|
| 224 |
align-items: flex-start;
|
| 225 |
gap: 8px;
|
| 226 |
+
width: fit-content;
|
| 227 |
}
|
| 228 |
|
| 229 |
.message.user .bubble {
|
|
|
|
| 236 |
color: #f0f0f0;
|
| 237 |
}
|
| 238 |
|
| 239 |
+
/* Ensure all content inside bubbles wraps properly */
|
| 240 |
+
.bubble * {
|
| 241 |
+
max-width: 100%;
|
| 242 |
+
overflow-wrap: break-word;
|
| 243 |
+
word-wrap: break-word;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.bubble p {
|
| 247 |
+
margin: 0.5rem 0;
|
| 248 |
+
width: 100%;
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
.bubble ul, .bubble ol {
|
| 252 |
+
margin: 0.5rem 0;
|
| 253 |
+
padding-left: 1.5rem;
|
| 254 |
+
width: 100%;
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
.bubble li {
|
| 258 |
+
margin: 0.25rem 0;
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
.bubble blockquote {
|
| 262 |
+
margin: 0.5rem 0;
|
| 263 |
+
padding-left: 1rem;
|
| 264 |
+
border-left: 3px solid rgba(255,255,255,0.3);
|
| 265 |
+
font-style: italic;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.bubble table {
|
| 269 |
+
width: 100%;
|
| 270 |
+
max-width: 100%;
|
| 271 |
+
overflow-x: auto;
|
| 272 |
+
display: block;
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
/* Debug panel styles */
|
| 276 |
.debug {
|
| 277 |
margin-top: 0.25rem;
|
|
|
|
| 384 |
background: rgba(0, 0, 0, 0.55);
|
| 385 |
border-radius: 6px;
|
| 386 |
overflow-x: auto;
|
| 387 |
+
max-width: 100%;
|
| 388 |
+
white-space: pre-wrap;
|
| 389 |
+
word-wrap: break-word;
|
| 390 |
}
|
| 391 |
|
| 392 |
.message .bubble pre code {
|