fix: limit item titel to oneline

This commit is contained in:
sarendsen
2025-03-13 15:57:56 +01:00
parent 7768939767
commit ab5df3c9ef
2 changed files with 3 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ export const ItemCardText: React.FC<ItemCardProps> = ({ item }) => {
<View className="mt-2 flex flex-col">
{item.Type === "Episode" ? (
<>
<Text numberOfLines={1} className="">
<Text numberOfLines={1} ellipsizeMode="tail" className="">
{item.Name}
</Text>
<Text numberOfLines={1} className="text-xs opacity-50">
@@ -24,7 +24,7 @@ export const ItemCardText: React.FC<ItemCardProps> = ({ item }) => {
</>
) : (
<>
<Text numberOfLines={2}>{item.Name}</Text>
<Text numberOfLines={1} ellipsizeMode="tail">{item.Name}</Text>
<Text className="text-xs opacity-50">{item.ProductionYear}</Text>
</>
)}

View File

@@ -30,6 +30,7 @@ export const BACKGROUND_FETCH_TASK_SESSIONS =
export async function registerBackgroundFetchAsyncSessions() {
try {
console.log("Registering background fetch sessions");
BackgroundFetch.registerTaskAsync(BACKGROUND_FETCH_TASK_SESSIONS, {
minimumInterval: 1 * 60, // 1 minutes
stopOnTerminate: false, // android only,