Video player polish
No header on Linux and OSX, just a back button on mouseover ESC exits fullscreen, or if already not in fullscreen, goes back More accurate scrub position Removed the calc(100% -38x) hack, replaced with flexbox
This commit is contained in:
@@ -17,7 +17,12 @@ function App (state, dispatch) {
|
||||
}
|
||||
}
|
||||
|
||||
var header = state.view.isFullScreen ? null : Header(state, dispatch)
|
||||
// Show the header only when we're outside of fullscreen
|
||||
// Also don't show it in the video player except in OSX
|
||||
var isOSX = process.platform === 'darwin'
|
||||
var isVideo = state.view.url === '/player'
|
||||
var isFullScreen = state.view.isFullScreen
|
||||
var header = !isFullScreen && (!isVideo || isOSX) ? Header(state, dispatch) : null
|
||||
|
||||
return hx`
|
||||
<div class="app">
|
||||
|
||||
Reference in New Issue
Block a user