mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-19 02:11:47 +01:00
fix: shrink the ssh connection box when no error (#1781)
This removes the rendering of the overlay scrollbars component when there are no error messages to scroll.
This commit is contained in:
parent
5ee1f4bbe9
commit
5f65d85d00
@ -448,6 +448,7 @@ const ConnStatusOverlay = React.memo(
|
||||
{showIcon && <i className="fa-solid fa-triangle-exclamation"></i>}
|
||||
<div className="connstatus-status">
|
||||
<div className="connstatus-status-text">{statusText}</div>
|
||||
{(showError || showWshError) && (
|
||||
<OverlayScrollbarsComponent
|
||||
className="connstatus-error"
|
||||
options={{ scrollbars: { autoHide: "leave" } }}
|
||||
@ -456,6 +457,7 @@ const ConnStatusOverlay = React.memo(
|
||||
{showError ? <div>error: {connStatus.error}</div> : null}
|
||||
{showWshError ? <div>unable to use wsh: {connStatus.wsherror}</div> : null}
|
||||
</OverlayScrollbarsComponent>
|
||||
)}
|
||||
{showWshError && (
|
||||
<Button className={reconClassName} onClick={handleDisableWsh}>
|
||||
always disable wsh
|
||||
|
Loading…
Reference in New Issue
Block a user