Fix alignment inside WSDebugRoute
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-03 16:18:03 +01:00
parent b47ec37a76
commit fe9c692e12

View File

@@ -23,13 +23,21 @@ export function WSDebugRoute(): React.ReactElement {
return ( return (
<MatrixGWRouteContainer label={"WebSocket Debug"}> <MatrixGWRouteContainer label={"WebSocket Debug"}>
<div> {/* Status bar */}
State:{" "} <div style={{ display: "flex", alignItems: "center" }}>
<span style={{ color: state == WSState.Connected ? "green" : "red" }}> <span style={{ marginRight: "0.5em" }}>State: </span>
<span
style={{
marginRight: "0.5em",
color: state == WSState.Connected ? "green" : "red",
}}
>
{state} {state}
</span> </span>
<MatrixWS onStateChange={setState} onMessage={handleMessage} /> <MatrixWS onStateChange={setState} onMessage={handleMessage} />
</div> </div>
{/* WS messages list */}
{messages.map((msg, id) => ( {messages.map((msg, id) => (
<div style={{ margin: "10px", backgroundColor: "black" }}> <div style={{ margin: "10px", backgroundColor: "black" }}>
<JsonView <JsonView