From ad8c25c7131bf71bc34ebdc4b93be4a38ece750a Mon Sep 17 00:00:00 2001 From: Factor Date: Thu, 19 Nov 2026 13:02:51 +0100 Subject: [PATCH] fix: history panel rows are tall enough for two lines of text and the meta line Co-Authored-By: Ovis Fast (Claude) --- herdr/herdr-composer/mods/herdr-composer/panel.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/herdr/herdr-composer/mods/herdr-composer/panel.js b/herdr/herdr-composer/mods/herdr-composer/panel.js index 2ff6f69..dd29b53 100644 --- a/herdr/herdr-composer/mods/herdr-composer/panel.js +++ b/herdr/herdr-composer/mods/herdr-composer/panel.js @@ -16,11 +16,17 @@ import { div, image } from "gpui-kit"; import { v_flex, h_flex, Input, Scrollbar, v_virtual_list } from "gpui-base"; import { segments, entryMeta } from "./history.js"; -/** The height of one row - the list is virtual, so every row has the same. */ -export const ROW_HEIGHT = 56; +/** + * The height of one row - the list is virtual, so every row has the same. + * + * 7 px of padding above and below, the two lines of text (TEXT_HEIGHT), 2 px + * and the line of meta (about 18 px): a row that is lower lets the second + * line of the text run into the meta. + */ +export const ROW_HEIGHT = 76; -/** The text lines of a row (the rest is cut). */ -const TEXT_HEIGHT = 34; +/** Two lines of the text of a row, at about 20 px a line (the rest is cut). */ +const TEXT_HEIGHT = 40; /** * The panel.