fix: font family not works in some interfaces, close #639

This commit is contained in:
GyDi
2023-06-29 14:21:14 +08:00
committed by GitHub
parent 7bc7bc7c49
commit 554d73c6ee
2 changed files with 8 additions and 5 deletions

View File

@@ -1,11 +1,12 @@
import { styled, Box } from "@mui/material";
const Item = styled(Box)(({ theme: { palette } }) => ({
const Item = styled(Box)(({ theme: { palette, typography } }) => ({
padding: "8px 0",
margin: "0 12px",
lineHeight: 1.35,
borderBottom: `1px solid ${palette.divider}`,
fontSize: "0.875rem",
fontFamily: typography.fontFamily,
userSelect: "text",
"& .time": {
color: palette.text.secondary,