mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
fix: limit item titel to oneline
This commit is contained in:
@@ -13,7 +13,7 @@ export const ItemCardText: React.FC<ItemCardProps> = ({ item }) => {
|
|||||||
<View className="mt-2 flex flex-col">
|
<View className="mt-2 flex flex-col">
|
||||||
{item.Type === "Episode" ? (
|
{item.Type === "Episode" ? (
|
||||||
<>
|
<>
|
||||||
<Text numberOfLines={1} className="">
|
<Text numberOfLines={1} ellipsizeMode="tail" className="">
|
||||||
{item.Name}
|
{item.Name}
|
||||||
</Text>
|
</Text>
|
||||||
<Text numberOfLines={1} className="text-xs opacity-50">
|
<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>
|
<Text className="text-xs opacity-50">{item.ProductionYear}</Text>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export const BACKGROUND_FETCH_TASK_SESSIONS =
|
|||||||
|
|
||||||
export async function registerBackgroundFetchAsyncSessions() {
|
export async function registerBackgroundFetchAsyncSessions() {
|
||||||
try {
|
try {
|
||||||
|
console.log("Registering background fetch sessions");
|
||||||
BackgroundFetch.registerTaskAsync(BACKGROUND_FETCH_TASK_SESSIONS, {
|
BackgroundFetch.registerTaskAsync(BACKGROUND_FETCH_TASK_SESSIONS, {
|
||||||
minimumInterval: 1 * 60, // 1 minutes
|
minimumInterval: 1 * 60, // 1 minutes
|
||||||
stopOnTerminate: false, // android only,
|
stopOnTerminate: false, // android only,
|
||||||
|
|||||||
Reference in New Issue
Block a user