mirror of
https://github.com/dbgate/dbgate
synced 2024-11-23 00:43:10 +00:00
Merge pull request #592 from kikyous/master
fix body overflow when context menu height great than viewport
This commit is contained in:
commit
f95beaefff
@ -6,8 +6,9 @@ body {
|
|||||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||||
sans-serif;
|
sans-serif;
|
||||||
*/
|
*/
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: auto;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.horizontal-split-handle {
|
.horizontal-split-handle {
|
||||||
|
@ -25,9 +25,6 @@
|
|||||||
newTop = offset.top - height;
|
newTop = offset.top - height;
|
||||||
|
|
||||||
if (newTop < 0) newTop = 0;
|
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`;
|
if (newLeft != null) element.style.left = `${newLeft}px`;
|
||||||
@ -169,6 +166,7 @@
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
max-height: calc(100% - 20px)
|
||||||
}
|
}
|
||||||
|
|
||||||
.keyText {
|
.keyText {
|
||||||
|
Loading…
Reference in New Issue
Block a user