mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Fix menues padding on android
This commit is contained in:
parent
21c4a7c577
commit
8640fefc8b
@ -21,6 +21,7 @@
|
|||||||
"react-native-blurhash": "*",
|
"react-native-blurhash": "*",
|
||||||
"react-native-fast-image": "*",
|
"react-native-fast-image": "*",
|
||||||
"react-native-reanimated": "*",
|
"react-native-reanimated": "*",
|
||||||
|
"react-native-safe-area-context": "*",
|
||||||
"react-native-svg": "*",
|
"react-native-svg": "*",
|
||||||
"yoshiki": "*"
|
"yoshiki": "*"
|
||||||
},
|
},
|
||||||
@ -40,6 +41,9 @@
|
|||||||
"react-native-fast-image": {
|
"react-native-fast-image": {
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"react-native-safe-area-context": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"react-native-web": {
|
"react-native-web": {
|
||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ import {
|
|||||||
useState,
|
useState,
|
||||||
} from "react";
|
} from "react";
|
||||||
import { StyleSheet, Pressable, View } from "react-native";
|
import { StyleSheet, Pressable, View } from "react-native";
|
||||||
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||||
import { percent, px, sm, useYoshiki, vh, xl } from "yoshiki/native";
|
import { percent, px, sm, useYoshiki, vh, xl } from "yoshiki/native";
|
||||||
import Close from "@material-symbols/svg-400/rounded/close-fill.svg";
|
import Close from "@material-symbols/svg-400/rounded/close-fill.svg";
|
||||||
import { Icon, IconButton } from "./icons";
|
import { Icon, IconButton } from "./icons";
|
||||||
@ -55,6 +56,7 @@ const Menu = <AsProps,>({
|
|||||||
onMenuOpen?: () => void;
|
onMenuOpen?: () => void;
|
||||||
onMenuClose?: () => void;
|
onMenuClose?: () => void;
|
||||||
} & Omit<AsProps, "onPress">) => {
|
} & Omit<AsProps, "onPress">) => {
|
||||||
|
const insets = useSafeAreaInsets();
|
||||||
const [isOpen, setOpen] = useState(false);
|
const [isOpen, setOpen] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -89,6 +91,7 @@ const Menu = <AsProps,>({
|
|||||||
borderTopRightRadius: { xs: px(26), xl: 0 },
|
borderTopRightRadius: { xs: px(26), xl: 0 },
|
||||||
paddingTop: { xs: px(26), xl: 0 },
|
paddingTop: { xs: px(26), xl: 0 },
|
||||||
marginTop: { xs: px(72), xl: 0 },
|
marginTop: { xs: px(72), xl: 0 },
|
||||||
|
paddingBottom: insets.bottom,
|
||||||
},
|
},
|
||||||
sm({
|
sm({
|
||||||
maxWidth: px(640),
|
maxWidth: px(640),
|
||||||
|
9
front/packages/ui/src/components/context-menus.tsx
Normal file
9
front/packages/ui/src/components/context-menus.tsx
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Menu } from "@kyoo/primitives";
|
||||||
|
|
||||||
|
export const EpisodesContext = () => {
|
||||||
|
return (
|
||||||
|
<Menu>
|
||||||
|
<Menu.Item />
|
||||||
|
</Menu>
|
||||||
|
);
|
||||||
|
};
|
@ -2900,6 +2900,7 @@ __metadata:
|
|||||||
react-native-blurhash: "*"
|
react-native-blurhash: "*"
|
||||||
react-native-fast-image: "*"
|
react-native-fast-image: "*"
|
||||||
react-native-reanimated: "*"
|
react-native-reanimated: "*"
|
||||||
|
react-native-safe-area-context: "*"
|
||||||
react-native-svg: "*"
|
react-native-svg: "*"
|
||||||
yoshiki: "*"
|
yoshiki: "*"
|
||||||
dependenciesMeta:
|
dependenciesMeta:
|
||||||
@ -2920,6 +2921,8 @@ __metadata:
|
|||||||
optional: true
|
optional: true
|
||||||
react-native-fast-image:
|
react-native-fast-image:
|
||||||
optional: true
|
optional: true
|
||||||
|
react-native-safe-area-context:
|
||||||
|
optional: true
|
||||||
react-native-web:
|
react-native-web:
|
||||||
optional: true
|
optional: true
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
|
Loading…
x
Reference in New Issue
Block a user