Skip to content

Commit 55403a6

Browse files
authored
fix(Tooltip): limit max width to viewport to prevent overflow on smal… (#1065)
1 parent 1fd2c4e commit 55403a6

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Tooltip: limit max width to viewport to prevent overflow on small screens

src/components/overlays/Tooltip/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const TooltipElement = tasty({
3636
'': '#white',
3737
light: '#dark-02',
3838
},
39-
width: 'initial 36x max-content',
39+
width: 'initial min(36x, (100dvw - 4x)) max-content',
4040
radius: true,
4141
padding: '.75x 1x',
4242
preset: 't4',

0 commit comments

Comments
 (0)