From a5092516747d49025ac549c8a4e7d32ba3a4662b Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Thu, 15 Dec 2022 22:50:27 +0100 Subject: [PATCH] Make condensed viewMode configurable in appBar && limit it to GenericSpace+Favorties view --- .../src/components/AppBar/AppBar.vue | 25 +++++++---- .../src/components/AppBar/ViewOptions.vue | 34 +++++++++------ .../components/FilesList/ResourceTable.vue | 4 +- .../useResourcesViewDefaults.ts | 2 +- .../src/composables/viewMode/constants.ts | 21 +++++++++- .../src/composables/viewMode/useViewMode.ts | 2 +- .../web-app-files/src/views/Favorites.vue | 2 +- .../src/views/spaces/GenericSpace.vue | 3 +- .../unit/components/AppBar/AppBar.spec.ts | 9 ++++ .../components/AppBar/ViewOptions.spec.ts | 23 +++++++++- .../AppBar/__snapshots__/AppBar.spec.ts.snap | 42 ++++++++++++++----- .../__snapshots__/ViewOptions.spec.ts.snap | 20 +++++---- packages/web-pkg/src/ui/types.ts | 10 +++++ 13 files changed, 151 insertions(+), 46 deletions(-) create mode 100644 packages/web-pkg/src/ui/types.ts diff --git a/packages/web-app-files/src/components/AppBar/AppBar.vue b/packages/web-app-files/src/components/AppBar/AppBar.vue index 3cd977174cb..a046e0f8ff9 100644 --- a/packages/web-app-files/src/components/AppBar/AppBar.vue +++ b/packages/web-app-files/src/components/AppBar/AppBar.vue @@ -28,7 +28,7 @@
- +
@@ -52,21 +52,22 @@