Skip to content

Commit 37de2be

Browse files
committed
Only show name tooltip when text is actually clamped
Pass empty string instead of undefined to v-b-tooltip when not clamped — Bootstrap-Vue still shows a tooltip for undefined values.
1 parent 2d2ac51 commit 37de2be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/components/Common/Heading.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ function checkClamped() {
6767
6868
const clampTooltip = computed(() => {
6969
if (isClamped.value) {
70-
return headingRef.value?.textContent?.trim();
70+
return headingRef.value?.textContent?.trim() ?? "";
7171
}
72-
return undefined;
72+
return "";
7373
});
7474
7575
const clampStyle = computed(() => {

client/src/components/History/Layout/DetailsLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function selectText() {
139139
v-if="renameable"
140140
ref="clickToEditRef"
141141
v-model="clickToEditName"
142-
v-b-tooltip.hover="clickToEditClamped ? name : undefined"
142+
v-b-tooltip.hover="clickToEditClamped ? name : ''"
143143
component="h3"
144144
title="..."
145145
data-description="name display"

0 commit comments

Comments
 (0)