Skip to content

Commit

Permalink
Fix css syntax to remove console warning
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Feb 23, 2024
1 parent b9e9215 commit 34a17d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changelog/1293.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Show LongDataDisplay controls only when needed
4 changes: 2 additions & 2 deletions src/app/components/LongDataDisplay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export const LongDataDisplay: FC<{ data: string; fontWeight?: number; collapsedL
lineHeight: `${lineHeight}px`,
overflowWrap: 'anywhere',
display: '-webkit-box',
'-webkit-line-clamp': isExpanded ? 'none' : `${collapsedLinesNumber}`, // keep it as string to avoid MUI adding px
'-webkit-box-orient': 'vertical',
WebkitLineClamp: isExpanded ? 'none' : collapsedLinesNumber,
WebkitBoxOrient: 'vertical',
}}
>
{data}
Expand Down

0 comments on commit 34a17d6

Please sign in to comment.