Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

refactor(layout): remove min-height calc form page-wrap, prevent unexpected browser's scroll restoration

haitao(lj)1a90a2c0eac5
diff --git a/ui/src/index.scss b/ui/src/index.scss
index e502ab5b..6703e036 100644
--- a/ui/src/index.scss
+++ b/ui/src/index.scss
@@ -98,9 +98,15 @@ a {
border-bottom: 1px solid rgba(33, 37, 41, 0.25);
}
-.page-wrap {
- min-height: calc(100vh - 138px);
+#root {
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+}
+#root > footer {
+ margin-top: auto !important;
}
+
.page-wrap2 {
background-color: #f5f5f5;
min-height: 100vh;