mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: update layout height to support dynamic viewport height (#6446)
This commit is contained in:
parent
3d4cf53a06
commit
c480c56dd7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user