Skip to content

Commit

Permalink
Limit processing task output display in UI to 75 characters (#673)
Browse files Browse the repository at this point in the history
* Limit processing task output display in UI to 75 characters

* ellipsis in wrong place
  • Loading branch information
markspolakovs authored Oct 12, 2024
1 parent 330c4b0 commit d613fa1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/components/MediaState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,15 @@ function MediaProcessingState({
{task.description}
{task.additionalInfo.length > 0 && (
<>
&nbsp;<small>({task.additionalInfo})</small>
&nbsp;
<small>
(
{(task.additionalInfo.length > 75 ? "..." : "") +
task.additionalInfo.substring(
Math.max(0, task.additionalInfo.length - 75),
)}
)
</small>
</>
)}
</li>
Expand Down

0 comments on commit d613fa1

Please sign in to comment.