fix(default): update layout to use dynamic vh (#1817)

This commit is contained in:
Mark Pinero 2023-04-28 10:44:58 -07:00 committed by GitHub
parent 28a68f47eb
commit 99dc8a0479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -132,6 +132,11 @@ export default defineConfig({
res += `\n${res.replace('{scrollbar-width:none;}', '::-webkit-scrollbar{display: none;}')}`
return res
}],
[/^h-100dvh$/, (_, { constructCSS }) => {
let res = constructCSS({ height: '100vh' })
res += `\n${res.replace('{height:100vh;}', '{height:100vh;height:100dvh;}')}`
return res
}],
['box-shadow-outline', { 'box-shadow': '0 0 0 1px var(--c-primary)' }],
],
})