Skip to content

Commit

Permalink
Revert "Set min width and width for date table column"
Browse files Browse the repository at this point in the history
This reverts commit 98f07de.
  • Loading branch information
wkramer committed Oct 1, 2024
1 parent bd4595d commit 2eac7db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/components/table/TimeSeriesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<tr>
<template v-for="(column, index) in columns" :key="column.key">
<th
:style="{ minWidth: column.minWidth }"
:class="[
(column as unknown as TableHeaders).class,
{
Expand Down Expand Up @@ -482,11 +483,6 @@ function onUpdateItem(event: TableData) {
width: 100%;
}
.date-header {
min-width: 24ch;
width: 24ch;
}
th.sticky-column {
position: sticky;
border-right: thin solid rgba(var(--v-border-color), var(--v-border-opacity));
Expand Down
3 changes: 2 additions & 1 deletion src/lib/table/createTableHeaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export function createTableHeaders(
tableHeaders.push({
key: 'date',
title: 'Date',
class: 'table-header sticky-column date-header',
minWidth: '24ch',
class: 'table-header sticky-column',
editable: false,
})
seriesIds.forEach((seriesId) => {
Expand Down

0 comments on commit 2eac7db

Please sign in to comment.