Skip to content

Commit

Permalink
fix: summary bar overlay fix for plugin (#1710)
Browse files Browse the repository at this point in the history
Signed-off-by: veds-g <[email protected]>
  • Loading branch information
veds-g authored and yhl25 committed May 3, 2024
1 parent 120244a commit c9fc458
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
4 changes: 0 additions & 4 deletions ui/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ html {
}
body,
#root,
.MuiScopedCssBaseline-root {
height: 100%;
font-family: Avenir !important;
}

.App-side-nav-link {
text-decoration: none;
Expand Down
4 changes: 3 additions & 1 deletion ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ function App(props: AppProps) {
setUserInfo,
}}
>
<ScopedCssBaseline>
<ScopedCssBaseline
sx={{ height: "100%", fontFamily: "Avenir, sans-serif" }}
>
<Box
sx={{
display: "flex",
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/common/SummaryPageLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export function SummaryPageLayout({
width: "14.4rem",
background: "#F8F8FB",
boxShadow: "0 0.4rem 0.6rem rgba(39, 76, 119, 0.16)",
zIndex: (theme) => theme.zIndex.drawer - 1,
zIndex: isPlugin ? "auto" : (theme) => theme.zIndex.drawer - 1,
position: isPlugin ? "relative" : "fixed",
top: isPlugin ? "3.85rem" : "10.2rem",
padding: "0 2rem",
Expand Down Expand Up @@ -281,7 +281,7 @@ export function SummaryPageLayout({
minHeight: SUMMARY_HEIGHT,
background: "#F8F8FB",
boxShadow: "0 0.3rem 1.1rem rgba(39, 76, 119, 0.16)",
zIndex: (theme) => theme.zIndex.drawer - 1,
zIndex: isPlugin ? "auto" : (theme) => theme.zIndex.drawer - 1,
position: isPlugin ? "relative" : "fixed",
top: isPlugin ? "10.5rem" : "9.2rem",
}}
Expand Down
4 changes: 0 additions & 4 deletions ui/src/components/plugin/NumaflowMonitorApp/App.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
html,
body,
#root,
.MuiScopedCssBaseline-root {
height: 100%;
font-family: Avenir !important;
}

.App-side-nav-link {
text-decoration: none;
Expand Down
6 changes: 4 additions & 2 deletions ui/src/components/plugin/NumaflowMonitorApp/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ function App(props: AppProps) {
setUserInfo,
}}
>
<ScopedCssBaseline>
<ScopedCssBaseline
sx={{ height: "100%", fontFamily: "Avenir, sans-serif" }}
>
<Box
sx={{
display: "flex",
Expand All @@ -209,7 +211,7 @@ function App(props: AppProps) {
width: "100%",
overflow: "auto",
background: "#F8F8FB",
zIndex: (theme) => theme.zIndex.drawer - 1,
zIndex: "auto",
}}
>
<Breadcrumbs namespace={namespace} />
Expand Down

0 comments on commit c9fc458

Please sign in to comment.