Skip to content

Commit 4f4f111

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ export const DocHeaderInfo = ({ doc }: DocHeaderInfoProps) => {
7474
<Text $variation="400" $size="s">
7575
{hasChildren ? relativeOnly : dateToDisplay}
7676
</Text>
77-
{hasChildren ? (
77+
{hasChildren && (
7878
<Text $variation="400" $size="s">
7979
&nbsp;•&nbsp;
8080
{t('Contains {{count}} sub-documents', {
8181
count: childrenCount,
8282
})}
8383
</Text>
84-
) : null}
84+
)}
8585
</>
8686
);
8787
};

0 commit comments

Comments
 (0)