Skip to content

Instantly share code, notes, and snippets.

@Isa3v
Created March 5, 2021 04:37
Show Gist options
  • Save Isa3v/3aee3757aedbe46438c4da4a1d7a7f4a to your computer and use it in GitHub Desktop.
Save Isa3v/3aee3757aedbe46438c4da4a1d7a7f4a to your computer and use it in GitHub Desktop.
Переменная css (100vh) для всех устройств и IOS Safari через JS
const appHeight = () => {
const doc = document.documentElement
doc.style.setProperty('--max-height-app', `calc(${window.innerHeight}px)`);
}
appHeight()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment