diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-24 10:42:23 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-24 10:42:23 +0200 |
| commit | d2459356d648825932137e9c7c5c018233c565a1 (patch) | |
| tree | c3f791750c3840e99192d812da6c3d1ccf26bcba /CHANGELOG.md | |
| parent | 9d3ce9ca53cb3b660323903a1db1ea6a31c1a03e (diff) | |
| download | llamachat-master.tar.gz llamachat-master.zip | |
Records why the block style carries white-space:pre-wrap and why the
padding is margins plus a spacer line: Qt's markdown stylesheet does not
cover pre, and Qt ignores padding and vertical margins on it. Also
describes the copy button and the constraints behind its shape, since
neither a widget nor :hover is available in Qt rich text.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a503a7..cc13970 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,9 +61,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - A dismiss (✕) button on status-line messages. They previously stayed until some later action replaced them; any status message can now be cleared without waiting. +- A copy button on every fenced code block, below it on the right. Qt rich + text has no widgets and no `:hover`, so it is an anchor in the same internal + scheme dispatch the thinking and search toggles use, and hovering is a + re-render driven by `QTextBrowser.highlighted()`. It is grey at rest, takes + the highlight colour under the pointer, and becomes a green tick for a + moment once used. The text comes from the source markdown, since Qt emits + one `<pre>` per line and the block cannot be recovered from the rendered + HTML. ### Fixed +- A long line in a code block widened the whole transcript and left it + scrolling sideways. Qt's markdown stylesheet wraps `p` and `li` but not + `pre`, and it is dropped when only the body fragment is kept, so the block + style now carries `white-space:pre-wrap` itself. +- Code blocks sat flush against their tint. Qt ignores `padding` and vertical + margins on `<pre>`, so the inset now comes from left and right margins and + the room above and below from a tinted spacer line. - Model listing crashed when a provider's `/v1/models` endpoint returned a bare JSON array instead of the standard `{"data": [...]}` envelope. The parser now accepts both shapes. |
