修复移动端100vh兼容性

This commit is contained in:
whyour
2021-05-11 19:37:37 +08:00
parent d9db5442d3
commit 49a3662788
12 changed files with 45 additions and 40 deletions
+6 -5
View File
@@ -1,12 +1,13 @@
.d2h-files-diff {
height: calc(100vh - 130px);
overflow: auto;
height: calc(100vh - 130px);
height: calc(100vh - var(--vh-offset, 0px) - 130px);
overflow: auto;
}
.d2h-code-side-linenumber {
position: relative;
position: relative;
}
.d2h-code-side-line {
padding: 0 0.5em;
}
padding: 0 0.5em;
}