Skip to content

Commit

Permalink
add zIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
Rider21 committed Mar 7, 2024
1 parent 7d44901 commit 0a20a48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions src/screens/WebviewScreen/WebviewScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,13 @@ const WebviewScreen = ({ route, navigation }: WebviewScreenProps) => {
navigation.goBack();
}}
/>
{menuVisible ? (
<Menu
theme={theme}
currentUrl={currentUrl}
webView={webViewRef}
setMenuVisible={setMenuVisible}
menuVisible={menuVisible}
/>
) : null}
<Menu
theme={theme}
currentUrl={currentUrl}
webView={webViewRef}
setMenuVisible={setMenuVisible}
menuVisible={menuVisible}
/>
<ProgressBar
color={theme.primary}
progress={progress}
Expand Down
1 change: 0 additions & 1 deletion src/screens/WebviewScreen/components/Appbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const Appbar: React.FC<AppbarProps> = ({
style={{
flexDirection: 'row',
justifyContent: 'flex-end',
//marginHorizontal: 3,
}}
>
<IconButtonV2
Expand Down
1 change: 1 addition & 0 deletions src/screens/WebviewScreen/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const Menu: React.FC<MenuProps> = ({
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'rgba(0,0,0,0.5)',
zIndex: menuVisible ? 10 : -1,
}}
>
<View style={{ position: 'absolute', right: 0 }}>
Expand Down

0 comments on commit 0a20a48

Please sign in to comment.