fix: history panel rows are tall enough for two lines of text and the meta line
Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
1 parent
d083cbf88b
commit
ad8c25c713
1 file changed
+10
-4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user