fix(web): wrap long patch output lines instead of widening the run table
This commit is contained in:
1 parent
fc10575b08
commit
0e464c4bb8
1 file changed
+7
-1
@@ -50,7 +50,13 @@ function ServerRow({ s }: { s: PatchServerRun }) {
|
||||
{open && s.output && (
|
||||
<Tr>
|
||||
<Td colSpan={5}>
|
||||
<pre className="max-h-96 overflow-auto rounded bg-well px-4 py-3 font-mono text-[11.5px] leading-relaxed text-text-secondary">{s.output}</pre>
|
||||
{/*
|
||||
* Wrap rather than scroll sideways: a pre sizes its table
|
||||
* cell to its longest line, so one long apt or dnf line
|
||||
* widened the whole table. overflow-wrap:anywhere also
|
||||
* breaks a single unbroken token such as a mirror URL.
|
||||
*/}
|
||||
<pre className="max-h-96 w-full min-w-0 overflow-y-auto whitespace-pre-wrap rounded bg-well px-4 py-3 font-mono text-[11.5px] leading-relaxed text-text-secondary [overflow-wrap:anywhere]">{s.output}</pre>
|
||||
</Td>
|
||||
</Tr>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user