Commit df8a5b0
committed
Improve MarkdownLabel sizing and bubble layout
* Refine ChatMessage::resizeEvent to clamp the minimum width to 90 % of
the widget width while preserving any pre‑existing minimum.
* Add 4 px padding to the bubble backgrounds so text no longer touches
the edges.
* Adjust MarkdownLabel::heightForWidth to include an additional 8 px of
vertical padding.
* Implement sizeHint() in MarkdownLabel to honor the widget’s minimum
width when queried by layouts.
* Increase the horizontal padding used when computing the longest line
width from 10 px to 20 px for a more comfortable visual appearance.
These tweaks fix layout glitches that appeared when resizing the chat
window and improve the overall readability of Markdown content.1 parent 6008f90 commit df8a5b0
File tree
3 files changed
+14
-3
lines changed3 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
| 305 | + | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
281 | 288 | | |
282 | 289 | | |
283 | 290 | | |
284 | 291 | | |
285 | 292 | | |
286 | | - | |
| 293 | + | |
287 | 294 | | |
288 | 295 | | |
289 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments