Compare commits

..
Author SHA1 Message Date
jiang a191d81c29 fix(ui): remove avatar hover scaling
Generic Container CI/CD / test-build-publish (push) Successful in 59s
Frontend CI/CD v2 / build-test-publish-and-deploy (push) Successful in 59s
2026-11-04 14:39:16 +08:00
+5 -1
View File
@@ -136,13 +136,14 @@ export const Header: React.FC<HeaderProps> = ({
padding: "6px 12px", padding: "6px 12px",
marginLeft: "8px", marginLeft: "8px",
transition: transition:
"background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease", "background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease",
border: "1px solid transparent", border: "1px solid transparent",
"&:hover": { "&:hover": {
backgroundColor: backgroundColor:
mode === "dark" mode === "dark"
? "rgba(255, 255, 255, 0.05)" ? "rgba(255, 255, 255, 0.05)"
: "rgba(0, 0, 0, 0.04)", : "rgba(0, 0, 0, 0.04)",
transform: "translateY(-1px)",
border: `1px solid ${mode === "dark" border: `1px solid ${mode === "dark"
? "rgba(255, 255, 255, 0.2)" ? "rgba(255, 255, 255, 0.2)"
: "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.1)"
@@ -153,6 +154,7 @@ export const Header: React.FC<HeaderProps> = ({
: "0 4px 12px rgba(0,0,0,0.08)", : "0 4px 12px rgba(0,0,0,0.08)",
}, },
"&:active": { "&:active": {
transform: "translateY(0px)",
boxShadow: "none", boxShadow: "none",
}, },
}} }}
@@ -187,7 +189,9 @@ export const Header: React.FC<HeaderProps> = ({
? "rgba(255,255,255,0.2)" ? "rgba(255,255,255,0.2)"
: "rgba(0,0,0,0.1)" : "rgba(0,0,0,0.1)"
}`, }`,
transition: "transform 0.3s ease",
".MuiButtonBase-root:hover &": { ".MuiButtonBase-root:hover &": {
transform: "rotate(5deg)",
borderColor: "primary.main", borderColor: "primary.main",
}, },
}} }}