Skip to content

Commit 41b3cba

Browse files
committed
Change unselected font weight on appbar, try fixed logo width for safari.
1 parent c9c716b commit 41b3cba

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/app/components/RespImage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ type imgProps = {
44
sizes?: string;
55
priority?: boolean;
66
height?: string;
7+
width?: string;
78
};
89

910
export default function RespImage(props: imgProps) {
@@ -13,7 +14,7 @@ export default function RespImage(props: imgProps) {
1314
src={props.src}
1415
sizes={props.sizes}
1516
style={{
16-
width: "100%",
17+
width: props.width ?? "100%",
1718
height: props.height ?? "auto",
1819
}}
1920
loading={props.loading}

src/app/components/TeamAppBar.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export default function TeamAppBar() {
5353
setOpen(open);
5454
};
5555

56-
const logoImage = <RespImage src={logo.src} height="30px" priority={true} />;
56+
const logoImage = (
57+
<RespImage src={logo.src} height="30px" width="70px" priority={true} />
58+
);
5759

5860
return (
5961
<AppBar position="fixed" style={{ background: "secondary" }}>
@@ -88,7 +90,7 @@ export default function TeamAppBar() {
8890
primary={page.title}
8991
primaryTypographyProps={{
9092
fontSize: 18,
91-
fontWeight: page.path === pathname ? "800" : "",
93+
fontWeight: page.path === pathname ? "800" : "400",
9294
color: "text.secondary",
9395
}}
9496
sx={{
@@ -162,7 +164,7 @@ export default function TeamAppBar() {
162164
color: "white",
163165
display: "block",
164166
textAlign: "center",
165-
fontWeight: page.path == pathname ? "800" : "100",
167+
fontWeight: page.path == pathname ? "800" : "400",
166168
textDecoration:
167169
page.path === pathname ? "underline" : "none",
168170
}}

0 commit comments

Comments
 (0)