Fix: Don't show margins around disabled elements in the Dashboard (#946)

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
skwig
2025-05-25 21:39:04 +02:00
committed by GitHub
parent 4303c1cb71
commit f5f00945bf
4 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ import {
export const Controls = ({ isEnabled }: ControlsProps): JSX.Element => { export const Controls = ({ isEnabled }: ControlsProps): JSX.Element => {
if (!isEnabled) { if (!isEnabled) {
return <box />; return null;
} }
return ( return (

View File

@@ -4,7 +4,7 @@ import { LeftLink1, LeftLink2, LeftLink3, RightLink1, RightLink2, RightLink3 } f
export const Directories = ({ isEnabled }: DirectoriesProps): JSX.Element => { export const Directories = ({ isEnabled }: DirectoriesProps): JSX.Element => {
if (!isEnabled) { if (!isEnabled) {
return <box />; return null;
} }
return ( return (

View File

@@ -6,7 +6,7 @@ export const Shortcuts = ({ isEnabled }: ShortcutsProps): JSX.Element => {
recordingPoller.initialize(); recordingPoller.initialize();
if (!isEnabled) { if (!isEnabled) {
return <box />; return null;
} }
return ( return (

View File

@@ -15,7 +15,7 @@ initializePollers(cpuService, ramService, gpuService, storageService);
export const Stats = ({ isEnabled }: StatsProps): JSX.Element => { export const Stats = ({ isEnabled }: StatsProps): JSX.Element => {
if (!isEnabled) { if (!isEnabled) {
return <box />; return null;
} }
return ( return (