mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-12 07:22:59 +01:00
chore: updated usage of tv scaling, alert text fix
Sweep across a few pages to ensure they use the scaling factors now Added a plugin to fix the alert text on android tv Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React from "react";
|
||||
import { Animated, Pressable, View, type ViewStyle } from "react-native";
|
||||
import { scaleSize } from "@/utils/scaleSize";
|
||||
import { useTVFocusAnimation } from "./hooks/useTVFocusAnimation";
|
||||
|
||||
export interface TVButtonProps {
|
||||
@@ -98,13 +99,13 @@ export const TVButton: React.FC<TVButtonProps> = ({
|
||||
backgroundColor: buttonStyles.backgroundColor,
|
||||
borderWidth: buttonStyles.borderWidth,
|
||||
borderColor: buttonStyles.borderColor,
|
||||
borderRadius: 12,
|
||||
paddingVertical: 18,
|
||||
paddingHorizontal: square ? 18 : 32,
|
||||
borderRadius: scaleSize(12),
|
||||
paddingVertical: scaleSize(18),
|
||||
paddingHorizontal: square ? scaleSize(18) : scaleSize(32),
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
minWidth: square ? undefined : 180,
|
||||
minWidth: square ? undefined : scaleSize(180),
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user