Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Dec 22, 2024
1 parent 64c7e5d commit 809b3f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/widgets/glances/components/container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export default function Container({ children, widget, error = null, chart = true
}

return (
<div className={classNames("service-container relative", chart ? "chart h-[84px]" : "")}>
<div className={classNames("service-container", chart ? "chart relative h-[120px]" : "")}>
{children}
<div className={`absolute top-0 right-0 bottom-0 left-0 overflow-clip pointer-events-none ${className}`} />
{chart && <div className="chart h-[68px] overflow-clip" />}
{chart && <div className="h-[68px] overflow-clip" />}
{!chart && <div className="h-[16px] overflow-clip" />}
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/glances/metrics/process.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ export default function Component({ service }) {

return (
<Container chart={chart}>
<Block position="top-0 right-3 left-3">
<Block position="top-4 right-3 left-3">
<div className="flex items-center text-xs">
<div className="grow" />
<div className="w-14 text-right italic">{t("resources.cpu")}</div>
<div className="w-14 text-right">{t("resources.mem")}</div>
</div>
</Block>

<Block position="bottom-2 right-3 left-3">
<Block position="bottom-4 right-3 left-3">
<div className="pointer-events-none text-theme-900 dark:text-theme-200">
{data.map((item) => (
<div key={item.pid} className="text-[0.75rem] h-[0.8rem]">
Expand Down

0 comments on commit 809b3f1

Please # to comment.