Skip to content

Commit cce55d2

Browse files
committed
fix: adjust slide-in panel width on different screen size; refs #51
1 parent 44763b7 commit cce55d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/NavBar/NavItems.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const NavItems: React.FC = () => {
2727
<Box
2828
component="img"
2929
src={`${process.env.PUBLIC_URL}/img/section1_logo_colored.png`}
30+
// src={`${process.env.PUBLIC_URL}/img/section1_logo_contained.png`}
3031
alt="logo"
3132
onClick={() => navigate("/")}
3233
height="auto"

src/components/NodeInfoPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({
7979
sx={{
8080
zIndex: (theme) => theme.zIndex.modal + 10,
8181
"& .MuiDrawer-paper": {
82-
width: "25%",
82+
width: { xs: "100%", sm: "40%", md: "30%" },
8383
padding: "1rem",
8484
boxShadow: `0px 0px 15px ${Colors.lightGray}`,
8585
backgroundColor: "rgba(97, 109, 243, 0.1)",

0 commit comments

Comments
 (0)