Skip to content

Commit

Permalink
💄 FileListView UI Improvements when sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacInsoll committed Nov 30, 2024
1 parent 618c3c9 commit 921ce1f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions frontend/src/components/FileListView/FileListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,21 @@ const Row = ({
const descriptionOverride =
type == 'RecentlyCommented' ? (
<>
<Badge color="gray" size="xs">
{file.totalComments}
</Badge>
<Text c="dimmed" fz="xs">
Latest: {prettyDate(file.latestComment)}
</Text>
{file.latestComment ? (
<>
<Badge color="gray" size="xs">
{file.totalComments}
</Badge>
<Text c="dimmed" fz="xs">
Latest: {prettyDate(file.latestComment)}
</Text>
</>
) : null}
</>
) : type == 'LastModified' ? (
<>
<Text c="dimmed" fz="xs">
Modified {prettyDate(file.fileLastModified)}
Modified: {prettyDate(file.fileLastModified)}
</Text>
</>
) : null;
Expand Down

0 comments on commit 921ce1f

Please sign in to comment.