Skip to content

Commit 651ca81

Browse files
keikarimiko
andauthored
Show file info without desc in shorts comment view (#3415)
Co-authored-by: miko <sauce47@posteo.net>
1 parent e380c3a commit 651ca81

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ui/component/fileTitleSection/view.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type Props = {
2222
nsfw: boolean,
2323
isNsfwBlocked: boolean,
2424
livestream?: boolean,
25+
hideDescription?: boolean,
2526
// redux
2627
channelClaimId?: string,
2728
title?: string,
@@ -36,6 +37,7 @@ export default function FileTitleSection(props: Props) {
3637
nsfw,
3738
isNsfwBlocked,
3839
livestream = false,
40+
hideDescription,
3941
subCount,
4042
channelClaimId,
4143
title,
@@ -106,7 +108,7 @@ export default function FileTitleSection(props: Props) {
106108
) : (
107109
<>
108110
<ClaimAuthor channelSubCount={subCount} uri={uri} />
109-
<FileDescription expandOverride={isMobile && livestream} uri={uri} />
111+
{!hideDescription && <FileDescription expandOverride={isMobile && livestream} uri={uri} />}
110112
</>
111113
)
112114
}

ui/component/shortsSidePanel/view.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const ShortsSidePanel = React.memo<Props>(
4949
<FileTitleSection uri={uri} accessStatus={accessStatus} />
5050
) : (
5151
<>
52+
<FileTitleSection uri={uri} accessStatus={accessStatus} hideDescription />
5253
{contentUnlocked &&
5354
(commentsDisabled ? (
5455
<Empty padded text={__('The creator of this content has disabled comments.')} />

0 commit comments

Comments
 (0)