Web: Client: moved version date and username to different lines
This commit is contained in:
parent
0c96feee56
commit
3fddf331f5
@ -48,9 +48,8 @@ const VersionRow = (props) => {
|
|||||||
const [commentValue, setCommentValue] = useState(info.comment);
|
const [commentValue, setCommentValue] = useState(info.comment);
|
||||||
const [isSavingComment, setIsSavingComment] = useState(false);
|
const [isSavingComment, setIsSavingComment] = useState(false);
|
||||||
|
|
||||||
const title = `${new Date(info.updated).toLocaleString(
|
const versionDate = `${new Date(info.updated).toLocaleString(culture)}`;
|
||||||
culture
|
const title = `${Encoder.htmlDecode(info.updatedBy?.displayName)}`;
|
||||||
)} ${Encoder.htmlDecode(info.updatedBy?.displayName)}`;
|
|
||||||
|
|
||||||
const linkStyles = { isHovered: true, type: "action" };
|
const linkStyles = { isHovered: true, type: "action" };
|
||||||
|
|
||||||
@ -150,16 +149,28 @@ const VersionRow = (props) => {
|
|||||||
{...onClickProp}
|
{...onClickProp}
|
||||||
t={t}
|
t={t}
|
||||||
/>
|
/>
|
||||||
<Link
|
<Box displayProp="flex" flexDirection="column">
|
||||||
onClick={onOpenFile}
|
<Link
|
||||||
fontWeight={600}
|
onClick={onOpenFile}
|
||||||
fontSize="14px"
|
fontWeight={600}
|
||||||
title={title}
|
fontSize="14px"
|
||||||
isTextOverflow={true}
|
title={versionDate}
|
||||||
className="version-link-file"
|
isTextOverflow={true}
|
||||||
>
|
className="version-link-file"
|
||||||
{title}
|
>
|
||||||
</Link>
|
{versionDate}
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
onClick={onOpenFile}
|
||||||
|
fontWeight={600}
|
||||||
|
fontSize="14px"
|
||||||
|
title={title}
|
||||||
|
isTextOverflow={true}
|
||||||
|
className="version-link-file"
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</Link>
|
||||||
|
</Box>
|
||||||
|
|
||||||
{/*<Text
|
{/*<Text
|
||||||
className="version_content-length"
|
className="version_content-length"
|
||||||
|
Loading…
Reference in New Issue
Block a user