From d8ccbbda8a7cc126bb5ca20b0fa9a03fdb54f76c Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Mon, 9 Jan 2023 20:48:10 +0100 Subject: [PATCH] Rebase after compat-mode-merge, alter approach of using ResourceTiles dynamically within ResourceTable --- .../src/components/OcTile/OcTile.vue | 15 +-- .../components/FilesList/ResourceTable.vue | 127 ++++-------------- .../components/FilesList/ResourceTiles.vue | 37 +++-- .../src/composables/filesList/index.ts | 92 +++++++++++++ .../src/views/spaces/GenericSpace.vue | 30 ++++- 5 files changed, 179 insertions(+), 122 deletions(-) create mode 100644 packages/web-app-files/src/composables/filesList/index.ts diff --git a/packages/design-system/src/components/OcTile/OcTile.vue b/packages/design-system/src/components/OcTile/OcTile.vue index ccab464f752..8b1128efb64 100644 --- a/packages/design-system/src/components/OcTile/OcTile.vue +++ b/packages/design-system/src/components/OcTile/OcTile.vue @@ -9,7 +9,7 @@ class="oc-card-media-top oc-border-b oc-flex oc-flex-center oc-flex-middle" :resource="resource" :folder-link="resourceRoute" - @click="$emit('click', $event)" + @click="$emit('click')" >
-
- +
+
@@ -128,9 +124,10 @@ export default defineComponent({ } } - .resource-name { - overflow: hidden; + .resource-name-wrapper { color: var(--oc-color-text-default); + max-width: 60%; + overflow: hidden; } } diff --git a/packages/web-app-files/src/components/FilesList/ResourceTable.vue b/packages/web-app-files/src/components/FilesList/ResourceTable.vue index efe0bc6806a..d9de046f4da 100644 --- a/packages/web-app-files/src/components/FilesList/ResourceTable.vue +++ b/packages/web-app-files/src/components/FilesList/ResourceTable.vue @@ -1,6 +1,5 @@ - +