0.10.2-4 Layout
This commit is contained in:
@@ -2177,7 +2177,7 @@ export default function DashboardPage({
|
||||
</section>
|
||||
|
||||
<section className="hardware-monitor-block">
|
||||
<h4>Freier Speicher in Pfaden</h4>
|
||||
<h4>Freier Speicher</h4>
|
||||
<div className="hardware-storage-list">
|
||||
{storageGroups.map((group) => {
|
||||
const rep = group.representative;
|
||||
@@ -2188,24 +2188,24 @@ export default function DashboardPage({
|
||||
: 0;
|
||||
const hasError = group.entries.every((e) => e?.error);
|
||||
const groupKey = group.mountPoint || group.entries.map((e) => e?.key).join('-');
|
||||
const labels = group.entries.map((e) => e?.label || e?.key || 'Pfad').join(' · ');
|
||||
return (
|
||||
<div
|
||||
key={`storage-group-${groupKey}`}
|
||||
className={`hardware-storage-item compact${hasError ? ' has-error' : ''}`}
|
||||
>
|
||||
<div className="hardware-storage-head">
|
||||
<strong>{group.entries.map((e) => e?.label || e?.key || 'Pfad').join(' · ')}</strong>
|
||||
<span className={`hardware-storage-percent tone-${tone}`}>
|
||||
{hasError ? 'Fehler' : formatPercent(rep?.usagePercent)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<small className="hardware-storage-group-label">{labels}</small>
|
||||
{hasError ? (
|
||||
<small className="error-text">{rep?.error}</small>
|
||||
) : (
|
||||
<>
|
||||
<div className={`hardware-storage-bar tone-${tone}`}>
|
||||
<ProgressBar value={barValue} showValue={false} />
|
||||
<div className="hardware-storage-bar-row">
|
||||
<div className={`hardware-storage-bar tone-${tone}`}>
|
||||
<ProgressBar value={barValue} showValue={false} />
|
||||
</div>
|
||||
<span className={`hardware-storage-percent tone-${tone}`}>
|
||||
{formatPercent(rep?.usagePercent)}
|
||||
</span>
|
||||
</div>
|
||||
<div className="hardware-storage-summary">
|
||||
<small>Frei: {formatBytes(rep?.freeBytes)}</small>
|
||||
@@ -2213,21 +2213,6 @@ export default function DashboardPage({
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
{group.entries.map((entry) => (
|
||||
<div key={entry?.key} className="hardware-storage-paths">
|
||||
<small className="hardware-storage-label-tag">{entry?.label || entry?.key}:</small>
|
||||
<small className="hardware-storage-path" title={entry?.path || '-'}>
|
||||
{entry?.path || '-'}
|
||||
</small>
|
||||
{entry?.queryPath && entry.queryPath !== entry.path ? (
|
||||
<small className="hardware-storage-path" title={entry.queryPath}>
|
||||
(Parent: {entry.queryPath})
|
||||
</small>
|
||||
) : null}
|
||||
{entry?.note ? <small className="hardware-storage-path">{entry.note}</small> : null}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user