Skip to content

Commit

Permalink
fix: separate style classes for desciption and text
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Aug 8, 2024
1 parent 25278c0 commit d099622
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@

.description {
display: flex;
display: -webkit-box; -webkit-line-clamp: 3; /* number of lines to show, apply what you think looks better */ line-clamp: 3; -webkit-box-orient: vertical;
font-size: $dv-font-size-sm;
}

.descriptionText {
display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
flex-direction: column;
width: 100%;
overflow: hidden;
color: black;
font-size: $dv-font-size-sm;
}

.date {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function FileCardInfo({ filePreview, persistentId }: FileCardInfoProps) {
<FileChecksum checksum={filePreview.metadata.checksum} />
</Stack>
</span>
<span className={styles.description}>{filePreview.metadata.description}</span>
<span className={styles.descriptionText}>{filePreview.metadata.description}</span>
</Stack>
</div>
)
Expand Down

0 comments on commit d099622

Please sign in to comment.