Sysinfo Plot Height (#1158)

This makes two small changes
- renames a class to resolve two css classes having the same name
- ensures sysinfo's outermost element follows the *-view pattern
This commit is contained in:
Sylvie Crowe 2024-10-27 23:02:28 -07:00 committed by GitHub
parent b746a0bfb6
commit 58ff42d9fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -1,12 +1,12 @@
// Copyright 2024, Command Line Inc. // Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.scrollable { .sysinfo-view {
flex-flow: column nowrap; flex-flow: column nowrap;
flex-grow: 1; flex-grow: 1;
margin-bottom: 0; margin-bottom: 0;
overflow-y: auto; overflow-y: auto;
.sysinfo-view { .sysinfo-inner {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: grid; display: grid;

View File

@ -531,8 +531,12 @@ const SysinfoViewInner = React.memo(({ model }: SysinfoViewProps) => {
} }
return ( return (
<OverlayScrollbarsComponent ref={osRef} className="scrollable" options={{ scrollbars: { autoHide: "leave" } }}> <OverlayScrollbarsComponent
<div className={clsx("sysinfo-view", { "two-columns": cols2 })}> ref={osRef}
className="sysinfo-view"
options={{ scrollbars: { autoHide: "leave" } }}
>
<div className={clsx("sysinfo-inner", { "two-columns": cols2 })}>
{yvals.map((yval, idx) => { {yvals.map((yval, idx) => {
return ( return (
<SingleLinePlot <SingleLinePlot