From 02e3ef0a7213852624679100c807363cbc74105f Mon Sep 17 00:00:00 2001 From: Alexandre Rousseau Date: Thu, 26 Dec 2024 10:49:35 +0100 Subject: [PATCH] feat(ui): display tooltip only if the element overflow I introduce a new attribute `data-writer-tooltip-strategy` that define when the tooltip should be display. In `overflow` mode, we check that the element has wrapped text inside`. --- src/ui/src/builder/BuilderSelect.vue | 9 +++++++-- src/ui/src/builder/BuilderTooltip.vue | 10 +++++++++- src/ui/src/wds/WdsDropdownMenu.vue | 6 +++++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/ui/src/builder/BuilderSelect.vue b/src/ui/src/builder/BuilderSelect.vue index 1e546c1b..526f2f37 100644 --- a/src/ui/src/builder/BuilderSelect.vue +++ b/src/ui/src/builder/BuilderSelect.vue @@ -3,13 +3,18 @@