Skip to content

Commit

Permalink
fix(ui):Fixed log horizontal scroll for issue argoproj#16411 (argopro…
Browse files Browse the repository at this point in the history
…j#16727)

* Fixed log horizontal scroll

Signed-off-by: Yi Cai <[email protected]>

* Updated log line-height

Signed-off-by: Yi Cai <[email protected]>

---------

Signed-off-by: Yi Cai <[email protected]>
  • Loading branch information
ciiay authored Jan 5, 2024
1 parent d595550 commit 1372529
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ export const PodsLogsViewer = (props: PodLogsProps) => {
const logsContent = (width: number, height: number, isWrapped: boolean) => (
<div ref={logsContainerRef} onScroll={handleScroll} style={{width, height, overflow: 'scroll'}}>
{logs.map((log, lineNum) => (
<pre key={lineNum} style={{whiteSpace: isWrapped ? 'normal' : 'pre'}} className='noscroll'>
<div key={lineNum} style={{whiteSpace: isWrapped ? 'normal' : 'pre', lineHeight: '16px'}} className='noscroll'>
<Ansi>{renderLog(log, lineNum)}</Ansi>
</pre>
</div>
))}
</div>
);
Expand Down

0 comments on commit 1372529

Please sign in to comment.