fix: library page cards having no height on tizen

This commit is contained in:
Aleksi Lassila
2024-04-19 18:13:18 +03:00
parent 7726d6a4a3
commit 8928155447
4 changed files with 12 additions and 6 deletions

View File

@@ -51,7 +51,7 @@
'h-44 w-80': size === 'md' && orientation === 'landscape',
'w-60 h-96': size === 'lg' && orientation === 'portrait',
'h-60 w-96': size === 'lg' && orientation === 'landscape',
'w-full': size === 'dynamic',
'w-full h-96': size === 'dynamic',
'shadow-lg': shadow
}
)}

View File

@@ -22,8 +22,10 @@
}));
</script>
<Container focusOnMount class="pl-20">
<div>LibraryPage</div>
<Container focusOnMount class="px-20">
<div class="my-8">
<div class="font-medium tracking-wide text-2xl text-zinc-200">Library</div>
</div>
<CardGrid>
{#await libraryItemsP}
<CarouselPlaceholderItems />

View File

@@ -694,7 +694,11 @@ export function handleKeyboardNavigation(event: KeyboardEvent) {
currentlyFocusedObject.back();
} else if (event.key === 'MediaPlayPause') {
currentlyFocusedObject.playPause();
} else {
return;
}
event.preventDefault();
}
Selectable.focusedObject.subscribe(console.debug);

View File

@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/SvelteTizen" version="1.0.0" viewmodes="maximized">
<tizen:application id="JZUbM5WimZ.SvelteTizen" package="JZUbM5WimZ" required_version="2.3"/>
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/Reiverr" version="1.0.0" viewmodes="maximized">
<tizen:application id="JZUbM5WimZ.Reiverr" package="JZUbM5WimZ" required_version="2.3"/>
<content src="index.html"/>
<tizen:content-security-policy>default-src 'self'</tizen:content-security-policy>
<feature name="http://tizen.org/feature/screen.size.normal.1080.1920"/>
<icon src="icon.png"/>
<tizen:metadata key="http://tizen.org/metadata/app_ui_type/base_screen_resolution" value="extensive"/>
<name>SvelteTizen</name>
<name>Reiverr</name>
<tizen:profile name="tv-samsung"/>
<tizen:setting screen-orientation="landscape" context-menu="enable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/>
</widget>