Skip to content

Commit 44adf39

Browse files
feat: Add Custom Width for table columns (#33)
1 parent f72a445 commit 44adf39

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/handler/ListHandler.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<th
3535
v-if="currentlist.structure?.[bone]"
3636
:class="{ 'stick-header': state.sticky }"
37-
:style="{ width: '150px' }"
37+
:style="{ width: currentlist.structure?.[bone]['params']['column_width']||state.tableWidth }"
3838
>
3939
{{ currentlist.structure?.[bone]?.["descr"] }}
4040
<div
@@ -205,7 +205,7 @@ import Utils from '../utils'
205205
selectedBones: [],
206206
selectedRows: [],
207207
sticky: false,
208-
tableWidth: "150",
208+
tableWidth: "150px",
209209
sorting: "",
210210
renderedList: computed(() => {
211211
return currentlist.state.skellist.map((skel) => {

src/handler/TreeHandler.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<th
7171
v-if="handlerLogic.currentlist.structure?.[bone]"
7272
:class="{ 'stick-header': state.sticky }"
73-
:style="{ width: '150px' }"
73+
:style="{ width: handlerLogic.currentlist.structure?.[bone]['params']['column_width']||state.tableWidth }"
7474
>
7575
{{ handlerLogic.currentlist.structure?.[bone]?.["descr"] }}
7676
<div
@@ -297,7 +297,7 @@ import { VueDraggable } from 'vue-draggable-plus'
297297
selectedBones: [],
298298
299299
sticky: false,
300-
tableWidth: "150",
300+
tableWidth: "150px",
301301
sorting: "",
302302
filter: null,
303303
sortindexBonename:null,

0 commit comments

Comments
 (0)