Skip to content

Commit

Permalink
fix: prevent floating element from breaking viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 authored Sep 7, 2024
1 parent 47de78b commit 43f8870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/ext.floatingUI/ext.floatingUI.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
z-index: 800; /* z-index-tooltip */
top: 0;
left: 0;
max-width: calc( 100vw - 32px ); /* Stop floating element from oveflowing viewport */
}

.ext-floatingui-floating-inner {
Expand Down

0 comments on commit 43f8870

Please sign in to comment.