diff --git a/packages/web/public/global.css b/packages/web/public/global.css index e211eef0..464b9844 100644 --- a/packages/web/public/global.css +++ b/packages/web/public/global.css @@ -6,8 +6,9 @@ body { 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; */ - -webkit-font-smoothing: antialiased; + -webkit-font-smoothing: auto; -moz-osx-font-smoothing: grayscale; + overflow: hidden; } .horizontal-split-handle { diff --git a/packages/web/src/modals/DropDownMenu.svelte b/packages/web/src/modals/DropDownMenu.svelte index 49b1b7bc..bd56d9e4 100644 --- a/packages/web/src/modals/DropDownMenu.svelte +++ b/packages/web/src/modals/DropDownMenu.svelte @@ -25,9 +25,6 @@ newTop = offset.top - height; if (newTop < 0) newTop = 0; - if (newTop + height > window.innerHeight) { - element.style.height = `${window.innerHeight - newTop}px`; - } } if (newLeft != null) element.style.left = `${newLeft}px`; @@ -169,6 +166,7 @@ cursor: default; white-space: nowrap; overflow-y: auto; + max-height: calc(100% - 20px) } .keyText {