diff --git a/packages/design-system/src/components/OcResource/OcResource.vue b/packages/design-system/src/components/OcResource/OcResource.vue index 7753d7744ba..20f1d3929e3 100644 --- a/packages/design-system/src/components/OcResource/OcResource.vue +++ b/packages/design-system/src/components/OcResource/OcResource.vue @@ -50,6 +50,7 @@ , required: true }, + /** + * The prefix that will be shown in the path + */ + pathPrefix: { + type: String, + required: false, + default: '' + }, /** * The resource folder link */ @@ -301,6 +310,20 @@ export default defineComponent({ &-indicators { display: flex; + a { + &:hover { + background-color: var(--oc-color-input-bg); + border-radius: 2px; + } + + .text { + &:hover { + color: var(--oc-color-text-default); + text-decoration: underline; + } + } + } + .parent-folder { display: flex; align-items: center; @@ -315,15 +338,6 @@ export default defineComponent({ .text { font-size: 0.8125rem; color: var(--oc-color-text-muted); - &:hover { - color: var(--oc-color-text-default); - text-decoration: underline; - } - } - - &:hover { - background-color: var(--oc-color-input-bg); - border-radius: 2px; } } } diff --git a/packages/design-system/src/components/OcResourceName/OcResourceName.vue b/packages/design-system/src/components/OcResourceName/OcResourceName.vue index ab3a20762be..88eb7a909a5 100644 --- a/packages/design-system/src/components/OcResourceName/OcResourceName.vue +++ b/packages/design-system/src/components/OcResourceName/OcResourceName.vue @@ -21,6 +21,7 @@