fix: document sizing for mobile

This commit is contained in:
Joshua Seigler 2021-11-30 10:47:25 -05:00
parent c853faf3ca
commit e9bb3b7df4
2 changed files with 5 additions and 4 deletions

View file

@ -47,8 +47,9 @@
height: 100%;
}
#help {
max-width: 80ch;
padding: 5em;
width: 80ch;
max-width: 100%;
padding: 1em;
}
pre {
background-color: #ffffff1f;

View file

@ -5,8 +5,6 @@ import Hls from 'hls.js'
import HlsjsIpfsLoader from 'hlsjs-ipfs-loader'
document.addEventListener('DOMContentLoaded', async () => {
setBodyHeight()
window.addEventListener('resize', setBodyHeight)
const hash = getUrlParameter('hash')
const source = getUrlParameter('source')
const title = getUrlParameter('title')
@ -17,6 +15,8 @@ document.addEventListener('DOMContentLoaded', async () => {
}
if (hash) {
document.getElementById('help').style.display = 'none'
setBodyHeight()
window.addEventListener('resize', setBodyHeight)
const video = document.getElementById('video')
video.style.display = 'block'
const repoPath = 'ipfs-' + Math.random()