Skip to content

Commit 42855d9

Browse files
committed
feat: force tooltip placement to bottom
Older Grafana versions have the placement set to the left, but it blocks some of the text, so force it to the bottom.
1 parent 94326d2 commit 42855d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/CodeEditor/HeightControllerBar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function HeightControllerBar({
6969

7070
return (
7171
<div className={styles.bar}>
72-
<Tooltip content={'Height of the code editor'}>
72+
<Tooltip content={'Height of the code editor'} placement="bottom">
7373
<div>
7474
<span>
7575
{editorHeight === 5 ? '(min) ' : ''}
@@ -82,13 +82,15 @@ export function HeightControllerBar({
8282
<IconButton
8383
aria-label="Set editor height to 64px"
8484
tooltip="Set editor height to 64px"
85+
tooltipPlacement="bottom"
8586
name={shrinkIcon}
8687
size="md"
8788
onClick={() => actuallySetContainerHeight(`${64 + editorHeightOffset}px`)}
8889
/>
8990
<IconButton
9091
aria-label="Set editor height to 33vh"
9192
tooltip={`Set editor height to 33vh (${viewHeight33InPx - editorHeightOffset}px)`}
93+
tooltipPlacement="bottom"
9294
name={expandIcon}
9395
size="md"
9496
onClick={() => actuallySetContainerHeight('33vh')}

0 commit comments

Comments
 (0)