Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to
- ♻️(frontend) move doc action buttons to fix toolbar #2360
- ♿️(frontend) add aria-hidden to decorative avatar SVGs in share modal #2324
- 🏗️(frontend) move comments to its own folder feature #2374
- ♿️(frontend) use semantic <p> elements in document info card #2379

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,21 @@ export const DocHeaderInfo = ({ doc }: DocHeaderInfoProps) => {
}

return (
<Box $direction="row">
<Box $direction="row" $align="center">
<Text
as="p"
$variation="tertiary"
$size="s"
$weight="bold"
$theme={isEditable ? 'neutral' : 'warning'}
$direction="row"
$margin="0"
>
<VisibilityDoc doc={doc} />
{transRole(isEditable ? doc.user_role || doc.link_role : Role.READER)}
&nbsp;·&nbsp;
</Text>
<Text $variation="tertiary" $size="s">
<Text as="p" $variation="tertiary" $size="s" $margin="0">
{dateToDisplay}
</Text>
</Box>
Expand Down
Loading