From c58d170e99f87df76d9dd9accee2d52a69d17951 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sat, 29 May 2021 14:17:03 +0800 Subject: [PATCH] Fix z-index problem in LeftSidebarWithMenu This applies the z-index fix which causes the sidebar menu to overlap with sidebar main. --- package.json | 2 +- src/layouts/LeftSidebarWithMenu/index.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d392ecb..b1ade7e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.2.3", + "version": "0.2.4", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/layouts/LeftSidebarWithMenu/index.tsx b/src/layouts/LeftSidebarWithMenu/index.tsx index 23e10b6..0b03b53 100644 --- a/src/layouts/LeftSidebarWithMenu/index.tsx +++ b/src/layouts/LeftSidebarWithMenu/index.tsx @@ -50,6 +50,7 @@ const SidebarMain = styled('div')({ height: '100%', paddingTop: 'inherit', paddingBottom: 'var(--size-menu, 4rem)', + zIndex: 2, [minWidthFactor(3)]: { position: 'absolute', right: 0,