mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-25 18:25:12 +02:00
fix: TV Back button not working and choppy sidebar animations
This commit is contained in:
@@ -2,9 +2,22 @@
|
||||
import Container from '../../Container.svelte';
|
||||
import { appState } from '../stores/app-state.store';
|
||||
import Button from '../components/Button.svelte';
|
||||
|
||||
let lastKeyCode = 0;
|
||||
let lastKey = '';
|
||||
</script>
|
||||
|
||||
<Container class="pl-24 flex flex-col items-start" focusOnMount>
|
||||
User agent: {window.navigator.userAgent}
|
||||
<div>Last key code: {lastKeyCode}</div>
|
||||
<div>Last key: {lastKey}</div>
|
||||
<Button on:clickOrSelect={appState.logOut} class="hover:bg-red-500">Log Out</Button>
|
||||
</Container>
|
||||
|
||||
<svelte:window
|
||||
on:keydown={(e) => {
|
||||
console.log('keypress', e);
|
||||
lastKeyCode = e.keyCode;
|
||||
lastKey = e.key;
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<DotFilled />
|
||||
<p class="flex-shrink-0">
|
||||
<a href={'https://www.themoviedb.org/movie/' + movie.id}
|
||||
>{movie.vote_average} TMDB</a
|
||||
>{movie.vote_average?.toFixed(1)} TMDB</a
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user