From 33838974c532e7d04a0f5cbdc4bb5b48cb1bf198 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 14 Jun 2021 15:13:08 +0200 Subject: [PATCH] Improve resources display on mobile Signed-off-by: Thomas Citharel --- js/src/components/Resource/FolderItem.vue | 2 +- js/src/components/Resource/ResourceItem.vue | 66 +++++++++++++++------ js/src/graphql/resources.ts | 3 + js/src/views/Resources/ResourceFolder.vue | 19 +++++- lib/graphql/schema/resource.ex | 1 + lib/mobilizon/resources/resources.ex | 4 +- 6 files changed, 72 insertions(+), 23 deletions(-) diff --git a/js/src/components/Resource/FolderItem.vue b/js/src/components/Resource/FolderItem.vue index ffa173b9..50c21cfd 100644 --- a/js/src/components/Resource/FolderItem.vue +++ b/js/src/components/Resource/FolderItem.vue @@ -162,7 +162,7 @@ a { } .body { - padding: 10px 8px 8px; + padding: 8px; flex: 1 1 auto; overflow: hidden; diff --git a/js/src/components/Resource/ResourceItem.vue b/js/src/components/Resource/ResourceItem.vue index b47be214..bdd2c0ea 100644 --- a/js/src/components/Resource/ResourceItem.vue +++ b/js/src/components/Resource/ResourceItem.vue @@ -20,21 +20,30 @@
- -

{{ resource.title }}

- {{ - resource.updatedAt | formatDateTimeString - }} - {{ urlHostname }} +
+ +

{{ resource.title }}

+
+
- +