Skip to content

Commit

Permalink
#156 text align defaults to left if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
smcgrath0 committed Sep 3, 2020
1 parent 6fe91ec commit 5cbca32
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions fragments/datalist/hatch.js
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ module.exports = {
'p-1': model.densetable === 'true',
'sticky': model.stickyheader === 'true',
'top-0': model.stickyheader === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}`
@@ -78,7 +78,7 @@ module.exports = {
'border': model.cellborders === 'true',
'p-3': model.densetable !== 'true',
'p-1': model.densetable === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}`
8 changes: 4 additions & 4 deletions fragments/datalist/template.vue
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@
'p-1': model.densetable === 'true',
'sticky': model.stickyheader === 'true',
'top-0': model.stickyheader === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}">
@@ -52,7 +52,7 @@
'p-1': model.densetable === 'true',
'sticky': model.stickyheader === 'true',
'top-0': model.stickyheader === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}">
@@ -67,7 +67,7 @@
'border': model.cellborders === 'true',
'p-3': model.densetable !== 'true',
'p-1': model.densetable === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}">
@@ -88,7 +88,7 @@
'border': model.cellborders === 'true',
'p-3': model.densetable !== 'true',
'p-1': model.densetable === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}" v-bind:style="`background:${active[j] ? 'var(--color-red-500) !important' : ''};`">
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@
'p-1': model.densetable === 'true',
'sticky': model.stickyheader === 'true',
'top-0': model.stickyheader === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}">
@@ -52,7 +52,7 @@
'p-1': model.densetable === 'true',
'sticky': model.stickyheader === 'true',
'top-0': model.stickyheader === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}">
@@ -67,7 +67,7 @@
'border': model.cellborders === 'true',
'p-3': model.densetable !== 'true',
'p-1': model.densetable === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}">
@@ -88,7 +88,7 @@
'border': model.cellborders === 'true',
'p-3': model.densetable !== 'true',
'p-1': model.densetable === 'true',
'text-left': col && col.textalignment === 'left',
'text-left': (col && col.textalignment === 'left') || (col && col.textalignment === ''),
'text-center': col && col.textalignment === 'center',
'text-right': col && col.textalignment === 'right',
}" v-bind:style="`background:${active[j] ? 'var(--color-red-500) !important' : ''};`">

0 comments on commit 5cbca32

Please sign in to comment.