Skip to content

Commit

Permalink
Make sure that cell containers use the same CSS as header cells; fidd…
Browse files Browse the repository at this point in the history
…le with padding
  • Loading branch information
justvanrossum committed Sep 2, 2023
1 parent 65da81a commit 66d57d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fontra/client/web-components/ui-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit 66d57d5

Please sign in to comment.