window title

This commit is contained in:
ThaUnknown 2022-03-13 00:46:39 +01:00
parent 4efedcbdaf
commit f2ba397410

View file

@ -5,7 +5,8 @@
export function updateMedia(fileMed) {
fileMedia = fileMed
media = fileMedia.media
const name = [fileMedia.mediaTitle, fileMedia.episodeNumber, fileMedia.episodeTitle].filter(i => i).join(' - ')
const name = [fileMedia.mediaTitle, fileMedia.episodeNumber, fileMedia.episodeTitle, 'Miru'].filter(i => i).join(' - ')
document.title = name || 'Miru'
fileMedia.episodeThumbnail = !!fileMedia.episodeThumbnail
const metadata =
@ -52,7 +53,6 @@
export let page
$: updateFiles(files)
export let files = []
export let name = null
let src = null
let video = null
let container = null
@ -705,11 +705,11 @@
<span class="material-icons" data-name="peers"> people </span>
<span class="stats">{torrent.peers}</span>
<span class="material-icons"> arrow_downward </span>
<span class="stats">{fastPrettyBytes(torrent.up)}/s</span>
<span class="material-icons"> arrow_upward </span>
<span class="stats">{fastPrettyBytes(torrent.down)}/s</span>
<span class="material-icons"> arrow_upward </span>
<span class="stats">{fastPrettyBytes(torrent.up)}/s</span>
</div>
<span class="material-icons ctrl font-size-12 p-10" title="Keybinds [`]" data-name="togglePopout" on:click={() => (showKeybinds = true)}> help_outline </span>
<span class="material-icons ctrl font-size-12 p-10" title="Keybinds [`]" on:click={() => (showKeybinds = true)}> help_outline </span>
</div>
<div class="middle d-flex align-items-center justify-content-center flex-grow-1 z-40 position-relative">
<div class="position-absolute w-full h-full" on:dblclick={toggleFullscreen}>
@ -890,8 +890,7 @@
}
.bottom img[src=' '],
:fullscreen .ctrl[data-name='toggleCast'],
:fullscreen .ctrl[data-name='togglePopout'] {
:fullscreen .ctrl[data-name='toggleCast'] {
display: none !important;
}