feat: use SVG for button icons

ref: N25B-400
This commit is contained in:
Twirre Meulenbelt
2026-01-26 10:09:44 +01:00
parent 470140ebdd
commit 1b0d678826
7 changed files with 51 additions and 5 deletions

View File

@@ -28,6 +28,22 @@
position: static; /* ensures it scrolls away */
}
.controlsButtons {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: .25rem;
max-width: 260px;
flex-wrap: wrap;
button {
display: flex;
justify-content: center;
align-items: center;
}
}
.phaseProgress {
margin-top: 0.5rem;
}

View File

@@ -30,6 +30,11 @@ import {
StatusList,
RobotConnected
} from './MonitoringPageComponents';
import Replay from "../../components/Icons/Replay.tsx";
import Pause from "../../components/Icons/Pause.tsx";
import Play from "../../components/Icons/Play.tsx";
import Next from "../../components/Icons/Next.tsx";
import Redo from "../../components/Icons/Redo.tsx";
// ----------------------------------------------------------------------
// 1. State management
@@ -235,31 +240,31 @@ function ControlPanel({
className={!isPlaying ? styles.pausePlayActive : styles.pausePlayInactive}
onClick={() => onAction("pause")}
disabled={loading}
></button>
><Pause /></button>
<button
className={isPlaying ? styles.pausePlayActive : styles.pausePlayInactive}
onClick={() => onAction("play")}
disabled={loading}
></button>
><Play /></button>
<button
className={styles.next}
onClick={() => onAction("nextPhase")}
disabled={loading}
></button>
><Next /></button>
<button
className={styles.restartPhase}
onClick={() => onAction("resetPhase")}
disabled={loading}
></button>
><Redo /></button>
<button
className={styles.restartExperiment}
onClick={onReset}
disabled={loading}
></button>
><Replay /></button>
</div>
</div>
);