Skip to content

Commit 5cfd301

Browse files
committed
fix: fix controls debug was not visible
1 parent cdd23bc commit 5cfd301

File tree

2 files changed

+18
-26
lines changed

2 files changed

+18
-26
lines changed

src/optionsGuiScheme.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -545,18 +545,6 @@ export const guiOptionsScheme: {
545545
/>
546546
}
547547
},
548-
{
549-
custom () {
550-
const { cookieStorage } = useSnapshot(appStorage)
551-
return <Button
552-
label={`Storage: ${cookieStorage ? 'Synced Cookies' : 'Local Storage'}`} onClick={() => {
553-
appStorage.cookieStorage = !cookieStorage
554-
alert('Reload the page to apply this change')
555-
}}
556-
inScreen
557-
/>
558-
}
559-
},
560548
{
561549
custom () {
562550
return <Category>Server Connection</Category>

src/react/ControDebug.tsx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,24 @@ export default () => {
5050
if (!options.debugContro) return null
5151

5252
return (
53-
<div style={{
54-
position: 'fixed',
55-
right: 0,
56-
top: '50%',
57-
transform: 'translateY(-50%)',
58-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
59-
padding: '8px',
60-
fontFamily: 'monospace',
61-
fontSize: '8px',
62-
color: 'white',
63-
display: 'flex',
64-
flexDirection: 'column',
65-
gap: '4px'
66-
}}>
53+
<div
54+
className='debug-contro'
55+
style={{
56+
position: 'fixed',
57+
right: 0,
58+
top: '50%',
59+
transform: 'translateY(-50%)',
60+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
61+
padding: '8px',
62+
fontFamily: 'monospace',
63+
fontSize: '8px',
64+
color: 'white',
65+
display: 'flex',
66+
flexDirection: 'column',
67+
gap: '4px',
68+
zIndex: 2,
69+
}}
70+
>
6771
<div>Keys: {[...pressedKeys].join(', ')}</div>
6872
<div style={{ color: 'limegreen' }}>Actions: {actions.join(', ')}</div>
6973
</div>

0 commit comments

Comments
 (0)