Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(chat): stop clipping the disclosure row chrome

ZeroY37855c23d574
diff --git a/apps/desktop/src/styles/messages.css b/apps/desktop/src/styles/messages.css
index b9a654ed2..53ecd25e3 100644
--- a/apps/desktop/src/styles/messages.css
+++ b/apps/desktop/src/styles/messages.css
@@ -11,6 +11,14 @@
/* Skip layout/paint for far-offscreen rows in long transcripts. */
content-visibility: auto;
contain-intrinsic-size: auto 140px;
+ /* Paint containment clips descendants to the padding box, which squared off
+ the deliberate bleed of the disclosure row chrome: the activity header
+ pulls its hover fill 3px past the column edge and a run row's head 4px, so
+ the icon can sit on the text's alignment line while the fill keeps its
+ padding, and the focus ring reaches 3.5px beyond its own box. 8px covers
+ the widest of them. .tool-activity-group clips the same chrome and carries
+ the same margin. */
+ overflow-clip-margin: 8px;
}
.message-row.user {
@@ -1744,6 +1752,10 @@
/* Skip layout/paint for collapsed groups far offscreen (D247). */
content-visibility: auto;
contain-intrinsic-size: auto 40px;
+ /* Clips the same disclosure chrome as .message-row — at the column's left
+ edge, and at its right for a run row's head — so it relaxes its clip by
+ the same amount; with either one left tight the fill is squared off. */
+ overflow-clip-margin: 8px;
}
.tool-activity-header {
@@ -1825,6 +1837,12 @@
.tool-activity-collapse-inner {
min-height: 0;
overflow: hidden;
+ /* This scroller's padding box is the clip edge, and overflow-clip-margin
+ does not apply to scroll containers, so a run row's 4px hover-fill
+ overhang is given layout room instead. The negative margin keeps the
+ content box — and therefore every row inside — the size it was. */
+ padding-right: 8px;
+ margin-right: -8px;
}
.tool-activity-body {