From 0495062110b286d8f92c451bb8d41337dd97573b Mon Sep 17 00:00:00 2001 From: GyDi <segydi@foxmail.com> Date: Sat, 24 Sep 2022 20:55:40 +0800 Subject: [PATCH] fix: style --- src/components/profile/profile-more.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/profile/profile-more.tsx b/src/components/profile/profile-more.tsx index 597750e..1acb36e 100644 --- a/src/components/profile/profile-more.tsx +++ b/src/components/profile/profile-more.tsx @@ -46,7 +46,7 @@ const ProfileMore = (props: Props) => { } = props; const { uid, type } = itemData; - const { t } = useTranslation(); + const { t, i18n } = useTranslation(); const [anchorEl, setAnchorEl] = useState<any>(null); const [position, setPosition] = useState({ left: 0, top: 0 }); const [editOpen, setEditOpen] = useState(false); @@ -110,6 +110,7 @@ const ProfileMore = (props: Props) => { <> <ProfileBox aria-selected={selected} + onDoubleClick={onEditFile} // onClick={() => onSelect(false)} onContextMenu={(event) => { const { clientX, clientY } = event; @@ -172,13 +173,14 @@ const ProfileMore = (props: Props) => { <Typography noWrap title={itemData.desc} - sx={{ width: "calc(100% - 75px)" }} + sx={i18n.language === "zh" ? { width: "calc(100% - 75px)" } : {}} > {itemData.desc} </Typography> )} <Typography + noWrap component="span" title={`Updated Time: ${parseExpire(itemData.updated)}`} style={{ fontSize: 14 }} -- GitLab