fix text?

This commit is contained in:
Violet Caulfield
2025-02-01 11:02:23 -06:00
parent 7bbda1ea63
commit 73a897d7f5
2 changed files with 8 additions and 2 deletions

View File

@@ -31,21 +31,29 @@ export default class Client {
this.setAndPersistUser(user)
else if (userJson)
this.user = JSON.parse(userJson)
else
this.user = undefined;
if (server)
this.setAndPersistServer(server)
else if (serverJson)
this.server = JSON.parse(serverJson);
else
this.server = undefined;
if (library)
this.setAndPersistLibrary(library)
else if (libraryJson)
this.library = JSON.parse(libraryJson)
else
this.library = undefined;
if (api)
this.api = api
else if (this.user && this.server)
this.api = new Api(this.server.url, JellyfinInfo.clientInfo, JellyfinInfo.deviceInfo, this.user.accessToken);
else
this.api = undefined;
}
public static get instance(): Client {

View File

@@ -60,9 +60,7 @@ interface TextProps extends TamaguiTextProps {
export function Text(props: TextProps): React.JSX.Element {
return (
<Paragraph
width={props.width}
fontWeight={props.bold ? 800 : 600}
textAlign={props.textAlign}
fontSize="$4"
lineBreakMode="clip"
userSelect="none"