Small, Large, and Dynamic viewport units #10657
MarcoMicale
started this conversation in
Ideas
Replies: 2 comments
-
or just add new classes to support dvh, lvh, and svh. I just wanted to bump this discussion, though I don't know how much visibility these get |
Beta Was this translation helpful? Give feedback.
0 replies
-
See: #11317 As an alternative: const {
height,
minHeight,
maxHeight
} = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
height: {
...height,
screen: '100svh'
},
minHeight: {
...minHeight,
screen: '100svh'
},
maxHeight: {
...maxHeight,
screen: '100svh'
},
},
},
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Replace h-screen (height: 100vh;) with h-screen (height: 100svh;)
Replace min-h-screen (min-height: 100vh;) with min-h-screen (min-height: 100svh;)
Replace max-h-screen (max-height: 100vh;) with max-h-screen (max-height: 100svh;)
Beta Was this translation helpful? Give feedback.
All reactions