From 5e98fdb4abeef91e9f7506410de6a364f29cfdba Mon Sep 17 00:00:00 2001 From: ImUrX Date: Tue, 31 Jan 2023 00:47:12 -0300 Subject: [PATCH] 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" > )} - +