From 66d57d577b3f3f05d2cf4ee69f1c80d74746064c Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Sat, 2 Sep 2023 11:51:57 +0200 Subject: [PATCH] Make sure that cell containers use the same CSS as header cells; fiddle with padding --- src/fontra/client/web-components/ui-list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fontra/client/web-components/ui-list.js b/src/fontra/client/web-components/ui-list.js index a11dc7251..469cb553e 100644 --- a/src/fontra/client/web-components/ui-list.js +++ b/src/fontra/client/web-components/ui-list.js @@ -87,10 +87,10 @@ export class UIList extends UnlitElement { background-color: var(--row-selected-background-color); } - .text-cell, .text-cell-header { + .list-cell, .text-cell, .text-cell-header { overflow: hidden; text-overflow: ellipsis; - padding: 0 0.2em 0 0.2em; + padding: 0 0.2em 0 0.1em; } .text-cell.left, .text-cell-header.left { @@ -261,6 +261,7 @@ export class UIList extends UnlitElement { if (colDesc.cellFactory) { cell = html.div( { + class: "list-cell", style: colDesc.width ? `display: flex; width: ${colDesc.width};` : "", }, [colDesc.cellFactory(item, colDesc)]