From 491599b1255771af4b8bfbe1743bda55c8244699 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Wed, 1 Oct 2025 09:38:14 +0200 Subject: [PATCH 1/5] fix: topbar save icon hover color --- packages/web-pkg/src/components/AppTopBar.vue | 14 +++----------- .../__snapshots__/AppTopBar.spec.ts.snap | 12 ++++++------ 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/packages/web-pkg/src/components/AppTopBar.vue b/packages/web-pkg/src/components/AppTopBar.vue index fdfa655edd..c9caecc483 100644 --- a/packages/web-pkg/src/components/AppTopBar.vue +++ b/packages/web-pkg/src/components/AppTopBar.vue @@ -8,7 +8,7 @@ { return { ...action, - class: 'p-1 app-topbar-action', + class: + 'p-1 text-role-on-chrome [&_svg]:!fill-role-on-chrome [&:hover:not(:disabled)_svg]:!fill-role-chrome', hideLabel: true } }) @@ -190,17 +191,8 @@ export default defineComponent({ @layer utilities { .oc-app-top-bar .oc-resource-indicators .text, - .app-topbar-action, - .app-topbar-action:hover:not(:disabled), #app-top-bar-resource .oc-resource-name span { @apply text-role-on-chrome; } } - -/* must not be inside a layer to overwrite the icon styles */ -.app-topbar-action svg, -.app-topbar-action:hover:not(:disabled) svg, -#app-top-bar-resource svg { - fill: var(--oc-role-on-chrome) !important; -} diff --git a/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap b/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap index ca05290b3e..6770a865c9 100644 --- a/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap +++ b/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap @@ -5,7 +5,7 @@ exports[`AppTopBar > if a resource is present > renders a resource and dropdownA
- +
@@ -23,7 +23,7 @@ exports[`AppTopBar > if a resource is present > renders a resource and dropdownA
- +
@@ -41,7 +41,7 @@ exports[`AppTopBar > if a resource is present > renders a resource and mainActio
- +
@@ -59,7 +59,7 @@ exports[`AppTopBar > if a resource is present > renders a resource and no action
- +
@@ -77,7 +77,7 @@ exports[`AppTopBar > if a resource is present > renders a resource without file
- +
@@ -95,7 +95,7 @@ exports[`AppTopBar > if no resource is present > renders only a close button 1`]
- +
From 8070f7c0613dc68cbd4eccfb0ae1c0d1be6cef60 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Wed, 1 Oct 2025 09:44:34 +0200 Subject: [PATCH 2/5] refactor: AppTopBar to script setup --- packages/web-pkg/src/components/AppTopBar.vue | 109 +++++++----------- 1 file changed, 42 insertions(+), 67 deletions(-) diff --git a/packages/web-pkg/src/components/AppTopBar.vue b/packages/web-pkg/src/components/AppTopBar.vue index c9caecc483..f5289f9e6d 100644 --- a/packages/web-pkg/src/components/AppTopBar.vue +++ b/packages/web-pkg/src/components/AppTopBar.vue @@ -97,8 +97,8 @@ - diff --git a/packages/web-pkg/src/components/FilesList/ResourceListItem.vue b/packages/web-pkg/src/components/FilesList/ResourceListItem.vue index c76fff95a1..6cd719a766 100644 --- a/packages/web-pkg/src/components/FilesList/ResourceListItem.vue +++ b/packages/web-pkg/src/components/FilesList/ResourceListItem.vue @@ -50,7 +50,7 @@ :is-extension-displayed="isExtensionDisplayed" /> -
+
displays parent folder name default if calculated name is example.pdf -
-
+
@@ -74,7 +74,7 @@ exports[`ResourceTiles component > renders an array of spaces correctly 1`] = `
-
+
diff --git a/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap b/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap index 6770a865c9..061dde2f82 100644 --- a/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap +++ b/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap @@ -2,10 +2,10 @@ exports[`AppTopBar > if a resource is present > renders a resource and dropdownActions (if given) and a close button 1`] = ` " -
+
- +
@@ -20,10 +20,10 @@ exports[`AppTopBar > if a resource is present > renders a resource and dropdownA exports[`AppTopBar > if a resource is present > renders a resource and dropdownActions as well as mainActions (if both are passed) and a close button 1`] = ` " -
+
- +
@@ -38,10 +38,10 @@ exports[`AppTopBar > if a resource is present > renders a resource and dropdownA exports[`AppTopBar > if a resource is present > renders a resource and mainActions (if given) and a close button 1`] = ` " -
+
- +
@@ -56,10 +56,10 @@ exports[`AppTopBar > if a resource is present > renders a resource and mainActio exports[`AppTopBar > if a resource is present > renders a resource and no actions (if none given) and a close button 1`] = ` " -
+
- +
@@ -74,10 +74,10 @@ exports[`AppTopBar > if a resource is present > renders a resource and no action exports[`AppTopBar > if a resource is present > renders a resource without file extension if areFileExtensionsShown is set to false 1`] = ` " -
+
- +
@@ -92,10 +92,10 @@ exports[`AppTopBar > if a resource is present > renders a resource without file exports[`AppTopBar > if no resource is present > renders only a close button 1`] = ` " -
+
- +