From 5fd7e3f7086c5f4910b5c82ba384aebc44a014c9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 22 Jul 2021 21:48:05 +0200 Subject: [PATCH] Fix table view scrolling on mobile --- src/styles/theme/theme.scss | 5 + src/views/list/views/Table.vue | 258 ++++++++++++++++++--------------- 2 files changed, 147 insertions(+), 116 deletions(-) diff --git a/src/styles/theme/theme.scss b/src/styles/theme/theme.scss index f29ff64e..a9f587f9 100644 --- a/src/styles/theme/theme.scss +++ b/src/styles/theme/theme.scss @@ -64,6 +64,11 @@ h6 { overflow: visible; } +.has-horizontal-overflow { + overflow-y: hidden; + overflow-x: auto; +} + .image.is-avatar { border-radius: 100%; } diff --git a/src/views/list/views/Table.vue b/src/views/list/views/Table.vue index 1d3c4c18..338d6a51 100644 --- a/src/views/list/views/Table.vue +++ b/src/views/list/views/Table.vue @@ -20,18 +20,42 @@ # - {{ $t('task.attributes.done') }} - {{ $t('task.attributes.title') }} - {{ $t('task.attributes.priority') }} - {{ $t('task.attributes.labels') }} - {{ $t('task.attributes.assignees') }} - {{ $t('task.attributes.dueDate') }} - {{ $t('task.attributes.startDate') }} - {{ $t('task.attributes.endDate') }} - {{ $t('task.attributes.percentDone') }} - {{ $t('task.attributes.created') }} - {{ $t('task.attributes.updated') }} - {{ $t('task.attributes.createdBy') }} + + {{ $t('task.attributes.done') }} + + + {{ $t('task.attributes.title') }} + + + {{ $t('task.attributes.priority') }} + + + {{ $t('task.attributes.labels') }} + + + {{ $t('task.attributes.assignees') }} + + + {{ $t('task.attributes.dueDate') }} + + + {{ $t('task.attributes.startDate') }} + + + {{ $t('task.attributes.endDate') }} + + + {{ $t('task.attributes.percentDone') }} + + + {{ $t('task.attributes.created') }} + + + {{ $t('task.attributes.updated') }} + + + {{ $t('task.attributes.createdBy') }} + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- # - - - {{ $t('task.attributes.done') }} - - - {{ $t('task.attributes.title') }} - - - {{ $t('task.attributes.priority') }} - - - {{ $t('task.attributes.labels') }} - - {{ $t('task.attributes.assignees') }} - - {{ $t('task.attributes.dueDate') }} - - - {{ $t('task.attributes.startDate') }} - - - {{ $t('task.attributes.endDate') }} - - - {{ $t('task.attributes.percentDone') }} - - - {{ $t('task.attributes.created') }} - - - {{ $t('task.attributes.updated') }} - - - {{ $t('task.attributes.createdBy') }} -
- - - - - -
Done
-
- {{ t.title }} - - - - - - - {{ t.percentDone * 100 }}% - -
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ # + + + {{ $t('task.attributes.done') }} + + + {{ $t('task.attributes.title') }} + + + {{ $t('task.attributes.priority') }} + + + {{ $t('task.attributes.labels') }} + + {{ $t('task.attributes.assignees') }} + + {{ $t('task.attributes.dueDate') }} + + + {{ $t('task.attributes.startDate') }} + + + {{ $t('task.attributes.endDate') }} + + + {{ $t('task.attributes.percentDone') }} + + + {{ $t('task.attributes.created') }} + + + {{ $t('task.attributes.updated') }} + + + {{ $t('task.attributes.createdBy') }} +
+ + + + + +
Done
+
+ {{ t.title }} + + + + + + + {{ t.percentDone * 100 }}% + +
+