fix(ui): restore memory usage centering in sidebar after MUI v9 migration

The MUI v9 migration moved boxStyle layout props into sx, but the memory
usage Box had a separate sx that overwrote it. Merge boxStyle.sx like the
upload/download rows already do.
This commit is contained in:
Tunglies 2026-04-16 10:35:10 +08:00
parent 71dc5f0bdb
commit 3ff53ab975
No known key found for this signature in database
GPG Key ID: B9B01B389469B3E8

View File

@ -131,6 +131,7 @@ export const LayoutTraffic = () => {
title={`${t('home.components.traffic.metrics.memoryUsage')} `}
{...boxStyle}
sx={{
...boxStyle.sx,
cursor: 'auto',
// opacity: memory?.is_fresh ? 1 : 0.6,
}}