fix: update layout height to support dynamic viewport height (#6446)

This commit is contained in:
Zeke Zhang 2025-03-13 11:53:09 +08:00 committed by GitHub
parent 3d4cf53a06
commit c480c56dd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,7 +154,10 @@ const layoutContentClass = css`
display: flex;
flex-direction: column;
position: relative;
/* 基础高度(所有浏览器支持) */
height: calc(100vh - var(--nb-header-height));
/* 动态视口高度(现代浏览器支持) */
height: calc(100dvh - var(--nb-header-height));
> div {
position: relative;
}