From 51169d9c7b1a5df91ce003ee0549fed58a988371 Mon Sep 17 00:00:00 2001 From: Butterscotch! Date: Sun, 29 Jan 2023 19:26:40 -0500 Subject: [PATCH 1/3] Remove the mounting reset button on the homepage Use the mounting calibration tab!! --- gui/src/components/MainLayout.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gui/src/components/MainLayout.tsx b/gui/src/components/MainLayout.tsx index c25a550f5..a58a9e9b5 100644 --- a/gui/src/components/MainLayout.tsx +++ b/gui/src/components/MainLayout.tsx @@ -53,10 +53,6 @@ export function MainLayoutRoute({ type={ResetType.Full} variant="big" > -
From 254e5aa6e4b56da34b4a8a93ff568fa0b74e79ac Mon Sep 17 00:00:00 2001 From: Butterscotch! Date: Sun, 29 Jan 2023 19:59:11 -0500 Subject: [PATCH 2/3] Re-add mounting reset for dev mode --- gui/src/components/MainLayout.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/src/components/MainLayout.tsx b/gui/src/components/MainLayout.tsx index a58a9e9b5..b61650775 100644 --- a/gui/src/components/MainLayout.tsx +++ b/gui/src/components/MainLayout.tsx @@ -53,6 +53,12 @@ export function MainLayoutRoute({ type={ResetType.Full} variant="big" > + {config?.debug && ( + + )}
From 5e98fdb4abeef91e9f7506410de6a364f29cfdba Mon Sep 17 00:00:00 2001 From: ImUrX Date: Tue, 31 Jan 2023 00:47:12 -0300 Subject: [PATCH 3/3] stretch bvh button optionally --- gui/src/components/BVHButton.tsx | 3 ++- gui/src/components/MainLayout.tsx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gui/src/components/BVHButton.tsx b/gui/src/components/BVHButton.tsx index caf91c0de..b2d2776db 100644 --- a/gui/src/components/BVHButton.tsx +++ b/gui/src/components/BVHButton.tsx @@ -9,7 +9,7 @@ import { useWebsocketAPI } from '../hooks/websocket-api'; import { BigButton } from './commons/BigButton'; import { RecordIcon } from './commons/icon/RecordIcon'; -export function BVHButton() { +export function BVHButton(props: React.HTMLAttributes) { const { l10n } = useLocalization(); const { useRPCPacket, sendRPCPacket } = useWebsocketAPI(); const [recording, setRecording] = useState(false); @@ -29,6 +29,7 @@ export function BVHButton() { text={l10n.getString(recording ? 'bvh-recording' : 'bvh-start_recording')} icon={} onClick={toggleBVH} + className={props.className} > ); } diff --git a/gui/src/components/MainLayout.tsx b/gui/src/components/MainLayout.tsx index b61650775..0d82bfaab 100644 --- a/gui/src/components/MainLayout.tsx +++ b/gui/src/components/MainLayout.tsx @@ -59,7 +59,9 @@ export function MainLayoutRoute({ variant="big" > )} - +