Skip to content

Commit

Permalink
stream info: show more text when no images
Browse files Browse the repository at this point in the history
  • Loading branch information
roienatan committed Jan 8, 2024
1 parent ebbe62c commit d65fbdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
overflow: hidden;
}

.descriptionLessShortened {
-webkit-line-clamp: 15;
}

.seeMore {
color: $c-pink-active-feed-cards;
width: fit-content;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export const FeedGeneralInfo: React.FC<FeedGeneralInfoProps> = (props) => {
editorRef={setDescriptionRef}
editorClassName={classNames(styles.description, {
[styles.descriptionShortened]: !shouldShowFullContent,
[styles.descriptionLessShortened]:
!shouldShowFullContent && (!images || images.length === 0),
})}
value={parsedDescription}
readOnly
Expand Down

0 comments on commit d65fbdc

Please sign in to comment.