fix: move now playing overlay on search tab to make space for input field

This commit is contained in:
Lei Nelissen
2023-06-20 22:57:49 +02:00
parent d15b7ea29d
commit fd3c3487be
2 changed files with 20 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ function SelectActionButton() {
}
}
function NowPlaying() {
function NowPlaying({ offset = 0 }: { offset?: number }) {
const { index, track } = useCurrentTrack();
const { buffered, position } = useProgress();
const defaultStyles = useDefaultStyles();
@@ -165,7 +165,7 @@ function NowPlaying() {
}
return (
<Container style={{ bottom: tabBarHeight + NOW_PLAYING_POPOVER_MARGIN }}>
<Container style={{ bottom: tabBarHeight + NOW_PLAYING_POPOVER_MARGIN + offset }}>
{/** TODO: Fix shadow overflow on Android */}
{Platform.OS === 'ios' ? (
<ShadowOverlay pointerEvents='none'>