fix: style
This commit is contained in:
parent
d522191f69
commit
0495062110
@ -46,7 +46,7 @@ const ProfileMore = (props: Props) => {
|
|||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const { uid, type } = itemData;
|
const { uid, type } = itemData;
|
||||||
const { t } = useTranslation();
|
const { t, i18n } = useTranslation();
|
||||||
const [anchorEl, setAnchorEl] = useState<any>(null);
|
const [anchorEl, setAnchorEl] = useState<any>(null);
|
||||||
const [position, setPosition] = useState({ left: 0, top: 0 });
|
const [position, setPosition] = useState({ left: 0, top: 0 });
|
||||||
const [editOpen, setEditOpen] = useState(false);
|
const [editOpen, setEditOpen] = useState(false);
|
||||||
@ -110,6 +110,7 @@ const ProfileMore = (props: Props) => {
|
|||||||
<>
|
<>
|
||||||
<ProfileBox
|
<ProfileBox
|
||||||
aria-selected={selected}
|
aria-selected={selected}
|
||||||
|
onDoubleClick={onEditFile}
|
||||||
// onClick={() => onSelect(false)}
|
// onClick={() => onSelect(false)}
|
||||||
onContextMenu={(event) => {
|
onContextMenu={(event) => {
|
||||||
const { clientX, clientY } = event;
|
const { clientX, clientY } = event;
|
||||||
@ -172,13 +173,14 @@ const ProfileMore = (props: Props) => {
|
|||||||
<Typography
|
<Typography
|
||||||
noWrap
|
noWrap
|
||||||
title={itemData.desc}
|
title={itemData.desc}
|
||||||
sx={{ width: "calc(100% - 75px)" }}
|
sx={i18n.language === "zh" ? { width: "calc(100% - 75px)" } : {}}
|
||||||
>
|
>
|
||||||
{itemData.desc}
|
{itemData.desc}
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Typography
|
<Typography
|
||||||
|
noWrap
|
||||||
component="span"
|
component="span"
|
||||||
title={`Updated Time: ${parseExpire(itemData.updated)}`}
|
title={`Updated Time: ${parseExpire(itemData.updated)}`}
|
||||||
style={{ fontSize: 14 }}
|
style={{ fontSize: 14 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user