Skip to content

Commit

Permalink
fix/ui: Stop table size updates on page navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mocca101 committed Feb 26, 2024
1 parent 61f8dfe commit e537b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/search-results-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const cols = [
.filter(desc => { return desc.value })
.map((description, index) => {
if (description.value != null) {
return h('span', { key: index }, description.value)
return h('span', { class: "max-w-[30vw] truncate inline-block", key: index }, description.value)
}
return
});
Expand Down Expand Up @@ -191,7 +191,7 @@ const table = useVueTable({
:key="row.id"
:data-state="row.getIsSelected() ? 'selected' : undefined">
<TableCell v-for="cell in row.getVisibleCells()" :key="cell.id">
<FlexRender :render="cell.column.columnDef.cell" :props="cell.getContext()" />
<FlexRender :render="cell.column.columnDef.cell" :props="cell.getContext()" />
</TableCell>
</TableRow>
</template>
Expand Down

0 comments on commit e537b19

Please sign in to comment.