Skip to content

Commit c0f3fb6

Browse files
committed
fixup! ✨(frontend) improve mobile UX by showing subdocs count
1 parent a9ddaf8 commit c0f3fb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/frontend/apps/impress/src/features/docs/doc-header/components/DocHeaderInfo.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ export const DocHeaderInfo = ({ doc }: DocHeaderInfoProps) => {
3333

3434
const childrenCount = countFromTreeContext ?? doc.numchild ?? 0;
3535

36+
const relativeOnly = relativeDate(doc.updated_at);
37+
3638
let dateToDisplay = t('Last update: {{update}}', {
37-
update: relativeDate(doc.updated_at),
39+
update: relativeOnly,
3840
});
39-
const relativeOnly = relativeDate(doc.updated_at);
4041

4142
if (config?.TRASHBIN_CUTOFF_DAYS && doc.deleted_at) {
4243
const daysLeft = calculateDaysLeft(

0 commit comments

Comments
 (0)