Skip to content

Commit

Permalink
Merged branch bugfix/issues-with-popper-on-desktop into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
horia141 committed Jun 16, 2024
1 parent 8eeb2cf commit 76930a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webui/app/components/infra/section-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function NavMultipleCompactView(props: NavMultipleViewProps) {
const anchorRef = React.useRef<HTMLDivElement>(null);
const [selectedIndex, setSelectedIndex] = React.useState(1);
const theme = useTheme();
const isBigScreen = useBigScreen();

const realActions: NavSingleDesc[] = [];
for (const action of props.action.navs) {
Expand Down Expand Up @@ -347,14 +348,13 @@ function NavMultipleCompactView(props: NavMultipleViewProps) {
</ButtonGroup>
<Popper
sx={{
zIndex: theme.zIndex.appBar + 1,
zIndex: theme.zIndex.appBar + 20,
backgroundColor: theme.palette.background.paper
}}
open={open}
anchorEl={anchorRef.current}
role={undefined}
disablePortal={!isBigScreen}
transition
disablePortal
>
{({ TransitionProps, placement }) => (
<Grow
Expand Down

0 comments on commit 76930a3

Please sign in to comment.