Skip to content

Commit f6ef1de

Browse files
authored
fix(frontend): replace tooltip overlay CSS workarounds with Vuetify props (#2841)
1 parent cfa8793 commit f6ef1de

File tree

4 files changed

+10
-38
lines changed

4 files changed

+10
-38
lines changed

frontend/src/components/Credentials/GBindingName.vue

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ SPDX-License-Identifier: Apache-2.0
1010
:binding="binding"
1111
/>
1212
<v-tooltip
13-
class="credentials-details-tooltip"
1413
:open-delay="500"
1514
location="top"
15+
width="200"
16+
content-class="pa-0"
17+
:content-props="{ style: { background: 'transparent' } }"
1618
>
1719
<template #activator="{ props: tProps }">
1820
<g-text-router-link
@@ -95,14 +97,3 @@ const resourceHash = computed(() => {
9597
const canLinkToCredential = computed(() => canGetCloudProviderCredentials.value && resourceUid.value)
9698
9799
</script>
98-
99-
<style lang="scss" scoped>
100-
101-
.credentials-details-tooltip {
102-
:deep(.v-overlay__content) {
103-
opacity: 1 !important;
104-
padding: 0;
105-
width: 200px;
106-
}
107-
}
108-
</style>

frontend/src/components/Credentials/GCredentialName.vue

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ SPDX-License-Identifier: Apache-2.0
1010
:credential="credential"
1111
/>
1212
<v-tooltip
13-
class="credentials-details-tooltip"
1413
:open-delay="500"
1514
location="top"
15+
width="200"
16+
content-class="pa-0"
17+
:content-props="{ style: { background: 'transparent' } }"
1618
>
1719
<template #activator="{ props: tProps }">
1820
<g-text-router-link
@@ -80,14 +82,3 @@ const resourceHash = computed(() => {
8082
const canLinkToCredential = computed(() => canGetCloudProviderCredentials.value && resourceUid.value)
8183
8284
</script>
83-
84-
<style lang="scss" scoped>
85-
86-
.credentials-details-tooltip {
87-
:deep(.v-overlay__content) {
88-
opacity: 1 !important;
89-
padding: 0;
90-
width: 200px;
91-
}
92-
}
93-
</style>

frontend/src/components/GProjectTooltip.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ SPDX-License-Identifier: Apache-2.0
1111
:open-delay="openDelay"
1212
:open-on-hover="openOnHover"
1313
:max-width="300"
14+
content-class="pa-0"
15+
:content-props="{ style: { background: 'transparent' } }"
1416
>
1517
<template #activator="{ props: activatorProps }">
1618
<div v-bind="activatorProps">
@@ -96,10 +98,3 @@ const {
9698
projectPurpose,
9799
} = useProvideProjectItem(project)
98100
</script>
99-
100-
<style lang="scss" scoped>
101-
:deep(.v-overlay__content) {
102-
opacity: 1 !important;
103-
padding: 0;
104-
}
105-
</style>

frontend/src/components/GVendor.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ SPDX-License-Identifier: Apache-2.0
1111
v-else
1212
location="top"
1313
:open-delay="200"
14+
content-class="pa-0"
15+
:content-props="{ style: { background: 'transparent' } }"
1416
>
1517
<template #activator="{ props }">
1618
<div
@@ -157,10 +159,3 @@ export default {
157159
},
158160
}
159161
</script>
160-
161-
<style lang="scss" scoped>
162-
:deep(.v-overlay__content) {
163-
opacity: 1 !important;
164-
padding: 0;
165-
}
166-
</style>

0 commit comments

Comments
 (0)