Skip to content

Commit

Permalink
fix(ui): Truncate long report filename
Browse files Browse the repository at this point in the history
FossIdReporter seems to produce incredibly long filenames, which break
the UI layout. `break-all` to the rescue, once again.

Resolves #1548.

Signed-off-by: Jyrki Keisala <jyrki.keisala@doubleopen.org>
  • Loading branch information
Etsija committed Dec 3, 2024
1 parent f474050 commit 1182ba2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ const ReportComponent = () => {
<div key={filename} className='flex flex-col pb-2'>
<Button
variant='outline'
className='font-semibold text-blue-400'
className='h-auto whitespace-normal font-semibold text-blue-400'
onClick={() => handleDownload(ortRun.id, filename)}
>
{filename}
<div className='break-all'>{filename}</div>
</Button>
</div>
))
Expand Down

0 comments on commit 1182ba2

Please sign in to comment.