diff options
| author | Arne Schauf <git@asw.io> | 2018-03-16 20:53:06 +0100 |
|---|---|---|
| committer | Arne Schauf <git@asw.io> | 2018-03-16 20:53:06 +0100 |
| commit | 9e9c27a163649f605f3718348c6a3b6799705b1d (patch) | |
| tree | 357f820464c1a3fbe5ddcc27bf95d8f12e1f3308 /src/pages/UploadList.vue | |
| parent | a8ac8353e8fa45570fca6a0c4417db11d5379c97 (diff) | |
| download | parry-ui-9e9c27a163649f605f3718348c6a3b6799705b1d.tar.gz parry-ui-9e9c27a163649f605f3718348c6a3b6799705b1d.zip | |
left align table cells
Diffstat (limited to 'src/pages/UploadList.vue')
| -rw-r--r-- | src/pages/UploadList.vue | 10 |
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'}, ], } }, |
