Skip to content

Commit

Permalink
Merge pull request #4527 from relative-ci/fix-file-name-height
Browse files Browse the repository at this point in the history
fix(ui): FileName - limit height to 2 rows
  • Loading branch information
vio committed Jun 24, 2024
2 parents f1fc644 + 7049e70 commit 723f422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/ui/src/ui/file-name/file-name.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
word-break: break-word;
hyphens: auto;
white-space: normal;
max-height: calc(2em * var(--line-height));
overflow: hidden;
}
2 changes: 1 addition & 1 deletion packages/ui/src/ui/file-name/file-name.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const NAMES = [
'styles.css',
'./src/components/sources/styles.css',
'css ./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/postcss-loader/src!./src/components/sources/source/styles.css',
'rreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordeallylongword',
'rreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordeallylongwordrreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordeallylongwordrreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordreallylongwordeallylongword',
];

export const Default = () => (
Expand Down

0 comments on commit 723f422

Please sign in to comment.