Skip to content

Commit

Permalink
Move column width class to td element
Browse files Browse the repository at this point in the history
Close #7800
  • Loading branch information
wrdhub committed Oct 23, 2024
1 parent 0922a96 commit 8eebc65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/common/gui/base/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,12 @@ export class Table implements Component<TableAttrs> {
if (typeof lineAttrs.cells == "function") {
cells = lineAttrs.cells().map((cellTextData, index) =>
m(
"td",
"td" + columnWidths[index],
m(
"",
{ class: useHelpButton ? "flex items-center height-100p full-width" : "" },
m(
".text-ellipsis.pr.pt-s" +
columnWidths[index] +
(bold ? ".b" : "") +
(cellTextData.click ? ".click" : "" + (cellTextData.mainStyle ? cellTextData.mainStyle : "")) +
(columnAlignments[index] ? ".right" : ""),
Expand Down

0 comments on commit 8eebc65

Please sign in to comment.