mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-04 07:42:31 -08:00
stretch bvh button optionally
This commit is contained in:
1 parent
254e5aa6e4
commit
5e98fdb4ab
2 files changed
+5
-2
No files matched your search
@@ -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>
|
||||
);
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user