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.