Skip to content

Commit

Permalink
Give context menu higher z-index than overlay
Browse files Browse the repository at this point in the history
Issue #250
  • Loading branch information
qu1ck committed Jan 31, 2025
1 parent 8cca653 commit 5129f33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"type": "module",
"scripts": {
"tauri-dev": "WEBKIT_DISABLE_DMABUF_RENDERER=1 tauri dev",
"tauri-dev": "tauri dev",
"tauri": "tauri",
"build": "tauri build",
"build-bin": "tauri build -b",
Expand Down
1 change: 1 addition & 0 deletions src/components/contextmenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export function ContextMenu({
middlewares={{ shift: true, flip: true }}
position="right-start"
closeOnClickOutside={closeOnClickOutside}
zIndex={500}
>
<Portal innerRef={containerRef}>
<Menu.Target>
Expand Down
4 changes: 3 additions & 1 deletion src/components/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,9 @@ function Details(props: DetailsProps) {
</Tabs.List>
<div style={{ flexGrow: 1, position: "relative" }}>
<LoadingOverlay
visible={props.torrentId !== undefined && isLoading} transitionDuration={500}
visible={props.torrentId !== undefined && isLoading}
zIndex={400}
transitionDuration={500}
loaderProps={{ size: "xl" }}
overlayOpacity={0.35} />
<DetailsPanels torrent={torrent} />
Expand Down

0 comments on commit 5129f33

Please sign in to comment.