From e96da17f1b47e85cf89fc4d575c79503c106773b Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Thu, 8 Aug 2024 14:16:05 +0200 Subject: [PATCH] feat: unstick topbar with limited vertical space Unsticks the top bar above tables as well as the table headers with limited vertical screen space. This way, we prevent those elements from overflowing content below. --- .../unreleased/enhancement-unstick-top-bar | 6 +++++ .../src/components/AppTemplate.vue | 21 +++++++++++++--- .../src/components/Groups/GroupsList.vue | 7 ++++-- .../src/components/Spaces/SpacesList.vue | 9 ++++--- .../src/components/Users/UsersList.vue | 7 ++++-- .../tests/unit/components/AppTemplate.spec.ts | 4 ++- .../views/__snapshots__/Spaces.spec.ts.snap | 2 +- .../views/__snapshots__/Users.spec.ts.snap | 4 +-- .../web-pkg/src/components/AppBar/AppBar.vue | 19 +++++++++++--- .../components/FilesList/ResourceTable.vue | 9 ++++--- packages/web-pkg/src/composables/index.ts | 1 + .../src/composables/isTopBarSticky/index.ts | 1 + .../isTopBarSticky/useIsTopBarSticky.ts | 25 +++++++++++++++++++ .../AppBar/__snapshots__/AppBar.spec.ts.snap | 6 ++--- 14 files changed, 96 insertions(+), 25 deletions(-) create mode 100644 changelog/unreleased/enhancement-unstick-top-bar create mode 100644 packages/web-pkg/src/composables/isTopBarSticky/index.ts create mode 100644 packages/web-pkg/src/composables/isTopBarSticky/useIsTopBarSticky.ts diff --git a/changelog/unreleased/enhancement-unstick-top-bar b/changelog/unreleased/enhancement-unstick-top-bar new file mode 100644 index 00000000000..9d8b8800857 --- /dev/null +++ b/changelog/unreleased/enhancement-unstick-top-bar @@ -0,0 +1,6 @@ +Enhancement: Unstick top bar + +The top bar above tables as well as the table headers now lose their "stickiness" with limited vertical screen space. This way, we prevent those elements from overflowing content below. + +https://github.com/owncloud/web/pull/11344 +https://github.com/owncloud/web/issues/10728 diff --git a/packages/web-app-admin-settings/src/components/AppTemplate.vue b/packages/web-app-admin-settings/src/components/AppTemplate.vue index ada01a6b597..682ae9ba58e 100644 --- a/packages/web-app-admin-settings/src/components/AppTemplate.vue +++ b/packages/web-app-admin-settings/src/components/AppTemplate.vue @@ -3,7 +3,12 @@