Skip to content

Commit

Permalink
fixed source column alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAsel committed Jan 18, 2024
1 parent 25a7777 commit a55abec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
name="viewport"
content="initial-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>"
/>
<meta name="google-site-verification" content="qtv93-j8tUOTtsuxOS988l9RF9L4-KGMgRYmOrUpQ5k" />

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
Expand Down
19 changes: 12 additions & 7 deletions src/components/Encounter/CreaturesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const columns: {
label: 'Source',
field: (row) => row.sources,
required: false,
align: 'left',
align: 'center',
sortable: true,
style: 'min-width: 120px; max-width: 120px;'
},
Expand Down Expand Up @@ -386,7 +386,7 @@ const addCreature = debounce(function (creature: creature) {
</div>
</template>
<template v-slot:header-cell-source>
<q-th class="tw-w-8">
<q-th>
<div
class="row no-wrap items-center tw-border-r tw-border-gray-200 dark:tw-border-gray-700"
>
Expand All @@ -400,8 +400,8 @@ const addCreature = debounce(function (creature: creature) {
options-dense
v-model="filterSource"
:options="Object.freeze(filters.getFilters.sources)"
:label="columns[0].label"
:dropdown-icon="matArrowDropDown"
:label="columns[0].label"
:style="columns[0].style"
/>
</div>
Expand All @@ -412,11 +412,16 @@ const addCreature = debounce(function (creature: creature) {
<template v-slot:header-cell-name>
<q-th>
<div
:style="columns[1].style"
class="row no-wrap items-center tw-border-r tw-border-gray-200 dark:tw-border-gray-700"
>
<div class="col">
<q-input dense outlined v-model="filterName" :label="columns[1].label" />
<div class="col-grow">
<q-input
dense
outlined
v-model="filterName"
:label="columns[1].label"
:style="columns[1].style"
/>
</div>
<div class="col-shrink tw-mx-2">
<q-btn
Expand Down Expand Up @@ -824,7 +829,7 @@ const addCreature = debounce(function (creature: creature) {
</q-th>
</template>
<template v-slot:body-cell-source="source">
<q-td class="text-center">
<q-td :props="source">
<q-icon round unelevated v-if="source.row.sources.length > 0" :name="biBook" size="xs">
<q-tooltip
class="text-caption tw-bg-gray-700 tw-text-gray-200 tw-rounded-md tw-shadow-sm dark:tw-bg-slate-700"
Expand Down

0 comments on commit a55abec

Please sign in to comment.