Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Oct 16, 2024
1 parent 2bf80ef commit 3eb54b5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/CorpsumDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const t = useTranslations("Corpsum");
:key="row.id"
:data-state="row.getIsSelected() ? 'selected' : undefined"
>
<TableCell v-for="cell in row.getVisibleCells()" :key="cell.id" >
<TableCell v-for="cell in row.getVisibleCells()" :key="cell.id">
<FlexRender :props="cell.getContext()" :render="cell.column.columnDef.cell" />
</TableCell>
</TableRow>
Expand Down
18 changes: 16 additions & 2 deletions src/utils/kwic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ export const getKWICColumns = (
header: () => h("div", { class: "text-right" }, t("Corpsum.left")),
cell: ({ row }: rowObj) => {
const left = row.getValue("left");
return h("div", { class: "text-right font-medium overflow-hidden text-ellipsis", style: "max-width: 24rem; text-overflow: ellipsis;", }, left);
return h(
"div",
{
class: "text-right font-medium overflow-hidden text-ellipsis",
style: "max-width: 24rem; text-overflow: ellipsis;",
},
left,
);
},
},
{
Expand All @@ -49,7 +56,14 @@ export const getKWICColumns = (
accessorKey: "right",
header: () => h("div", { class: "text-left" }, t("Corpsum.right")),
cell: ({ row }: rowObj) => {
return h("div", { class: "text-left font-medium overflow-hidden text-ellipsis", style: "max-width: 24rem; text-overflow: ellipsis;" }, row.getValue("right"));
return h(
"div",
{
class: "text-left font-medium overflow-hidden text-ellipsis",
style: "max-width: 24rem; text-overflow: ellipsis;",
},
row.getValue("right"),
);
},
},
];
Expand Down

0 comments on commit 3eb54b5

Please sign in to comment.