aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages
diff options
context:
space:
mode:
authorArne Schauf <git@asw.io>2018-03-16 20:53:06 +0100
committerArne Schauf <git@asw.io>2018-03-16 20:53:06 +0100
commit9e9c27a163649f605f3718348c6a3b6799705b1d (patch)
tree357f820464c1a3fbe5ddcc27bf95d8f12e1f3308 /src/pages
parenta8ac8353e8fa45570fca6a0c4417db11d5379c97 (diff)
downloadparry-ui-9e9c27a163649f605f3718348c6a3b6799705b1d.tar.gz
parry-ui-9e9c27a163649f605f3718348c6a3b6799705b1d.zip
left align table cells
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/UploadList.vue10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pages/UploadList.vue b/src/pages/UploadList.vue
index 15b56f1..733206f 100644
--- a/src/pages/UploadList.vue
+++ b/src/pages/UploadList.vue
@@ -74,22 +74,24 @@
rowHeight: '60px',
},
tableColumns: [
- {name: 'title', label: 'Title', field: 'title'},
+ {name: 'title', label: 'Title', field: 'title', align: 'left'},
{
name: 'description',
label: 'Description',
field: 'description',
+ align: 'left',
format: el => typeof el === 'string' && el.length > 50 ? el.slice(0, 50) + '...' : el,
},
- {name: 'author', label: 'Author', field: row => row.author.username},
- {name: 'voting', label: 'Voting', field: 'voting'},
+ {name: 'author', label: 'Author', field: row => row.author.username, align: 'left'},
+ {name: 'voting', label: 'Voting', field: 'voting', align: 'left'},
{
name: 'updatedAt',
label: 'Last update',
field: 'updatedAt',
+ align: 'left',
format: el => moment(el).from(),
},
- {name: 'action', label: 'Actions', field: 'action'},
+ {name: 'action', label: 'Actions', field: 'action', align: 'left'},
],
}
},