Skip to content

Commit

Permalink
Merge pull request #769 from googlefonts/issue768
Browse files Browse the repository at this point in the history
Make sure that cell containers use the same CSS as header cells
  • Loading branch information
justvanrossum authored Sep 2, 2023
2 parents 65da81a + 66d57d5 commit 7fc35d7
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 7fc35d7

Please sign in to comment.