Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): some tooltips don't render correctly due to extra whitespace

Elian Doran9021b119b27a
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 5a7d4d923f..3c20cc400d 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -717,7 +717,6 @@ table.promoted-attributes-in-tooltip th {
.tooltip {
font-size: var(--main-font-size) !important;
z-index: calc(var(--ck-z-panel) - 1) !important;
- white-space: pre-wrap;
}
.tooltip.tooltip-top {
diff --git a/apps/client/src/widgets/react/Badge.tsx b/apps/client/src/widgets/react/Badge.tsx
index e76700b610..6e17ed0ce2 100644
--- a/apps/client/src/widgets/react/Badge.tsx
+++ b/apps/client/src/widgets/react/Badge.tsx
@@ -32,7 +32,8 @@ export function Badge({ icon, className, text, tooltip, href, ...containerProps
fallbackPlacements: [ "bottom" ],
animation: false,
html: true,
- title: tooltip
+ title: tooltip,
+ customClass: "pre-wrap-text"
});
const content = <>