Skip to content

Commit 4914fa6

Browse files
committed
fix: styling on tooltip
1 parent 70397fa commit 4914fa6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

packages/pluggableWidgets/rich-text-web/src/ui/RichText.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ $rte-brand-primary: #264ae5;
1313
.ql-container {
1414
border: unset;
1515
overflow: hidden;
16+
17+
.ql-tooltip {
18+
position: fixed;
19+
width: max-content;
20+
left: 0;
21+
z-index: 1;
22+
}
1623
}
1724

1825
&.fullscreen {

packages/pluggableWidgets/rich-text-web/src/utils/themes/mxTooltip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class MxTooltip extends BaseTooltip {
8686

8787
setPosition(domNode: HTMLElement): void {
8888
computePosition(domNode, this.root, {
89-
placement: "bottom",
89+
placement: "bottom-end",
9090
middleware: [flip(), shift({ padding: 5 })]
9191
}).then(({ x, y }) => {
9292
Object.assign(this.root.style, {

0 commit comments

Comments
 (0)