mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix settings wrapping on small screens
This commit is contained in:
parent
ad80fd3bde
commit
61e25f8b95
@ -33,7 +33,7 @@ import {
|
||||
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
||||
import { Children, type ReactElement, type ReactNode } from "react";
|
||||
import { type Falsy, View } from "react-native";
|
||||
import { px, rem, useYoshiki } from "yoshiki/native";
|
||||
import { percent, px, rem, useYoshiki } from "yoshiki/native";
|
||||
|
||||
export const Preference = ({
|
||||
customIcon,
|
||||
@ -79,7 +79,18 @@ export const Preference = ({
|
||||
<SubP>{description}</SubP>
|
||||
</View>
|
||||
</View>
|
||||
<View {...css({ marginX: ts(2), flexDirection: "row", gap: ts(1) })}>{children}</View>
|
||||
<View
|
||||
{...css({
|
||||
marginX: ts(2),
|
||||
flexDirection: "row",
|
||||
justifyContent: "flex-end",
|
||||
gap: ts(1),
|
||||
maxWidth: percent(50),
|
||||
flexWrap: "wrap",
|
||||
})}
|
||||
>
|
||||
{children}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user