stretch bvh button optionally

This commit is contained in:
ImUrX committed 2023-01-31 00:47:12 -03:00
1 parent 254e5aa6e4
commit 5e98fdb4ab
2 files changed
+5 -2

No files matched your search

+2 -1
View File
@@ -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<HTMLButtonElement>) {
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={<RecordIcon width={20} />}
onClick={toggleBVH}
className={props.className}
></BigButton>
);
}
+3 -1
View File
@@ -59,7 +59,9 @@ export function MainLayoutRoute({
variant="big"
></ResetButton>
)}
<BVHButton></BVHButton>
<BVHButton
className={config?.debug ? 'col-span-1' : 'col-span-2'}
></BVHButton>
</div>
<div className="w-full">
<OverlayWidget></OverlayWidget>