From d327666ff530a5d76294f423a859d9e27051515b Mon Sep 17 00:00:00 2001 From: Justineo Date: Wed, 11 Sep 2024 14:57:41 +0800 Subject: [PATCH] fix(kcopy): truncated text should have max-width on tooltip --- sandbox/pages/SandboxCopy.vue | 10 ++++++++++ src/components/KCopy/KCopy.vue | 1 + 2 files changed, 11 insertions(+) diff --git a/sandbox/pages/SandboxCopy.vue b/sandbox/pages/SandboxCopy.vue index 0ed88473e3..fd5d1f1e29 100644 --- a/sandbox/pages/SandboxCopy.vue +++ b/sandbox/pages/SandboxCopy.vue @@ -35,6 +35,15 @@ :text="uuid1" truncate /> + + | null>(null) diff --git a/src/components/KCopy/KCopy.vue b/src/components/KCopy/KCopy.vue index 22e59b6a00..aee373ea06 100644 --- a/src/components/KCopy/KCopy.vue +++ b/src/components/KCopy/KCopy.vue @@ -14,6 +14,7 @@ v-if="format !== 'hidden'" :class="[textTooltipClasses]" data-testid="copy-tooltip-wrapper" + max-width="500px" placement="bottom-start" :text="textTooltipLabel" >