Skip to content

Commit 7050a53

Browse files
committed
feat(bottom-bar): add compass component, update styling
1 parent cf80ae0 commit 7050a53

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

electron/renderer/components/game/game-bottom-bar.tsx

+26-9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useCallback } from 'react';
44
import { isEmpty } from '../../../common/string/string.utils.js';
55
import { useCommandHistory } from '../../hooks/command-history.jsx';
66
import { runInBackground } from '../../lib/async/run-in-background.js';
7+
import { GameCompass } from './game-compass.jsx';
78
import { GameRoundTime } from './game-roundtime.jsx';
89

910
export interface GameBottomBarProps {
@@ -31,14 +32,30 @@ export const GameBottomBar: React.FC<GameBottomBarProps> = (
3132
);
3233

3334
return (
34-
<EuiFieldText
35-
value={input}
36-
compressed={true}
37-
fullWidth={true}
38-
prepend={<GameRoundTime />}
39-
tabIndex={0}
40-
onKeyDown={onKeyDown}
41-
onChange={handleOnChange}
42-
/>
35+
<div
36+
css={{
37+
display: 'flex',
38+
alignItems: 'center',
39+
gap: '5px',
40+
paddingTop: '5px',
41+
paddingBottom: '5px',
42+
paddingLeft: '5px',
43+
paddingRight: '10px',
44+
}}
45+
>
46+
<GameRoundTime />
47+
{/* TODO move to GameCommandInput */}
48+
<div css={{ paddingRight: '5px', width: '100%' }}>
49+
<EuiFieldText
50+
value={input}
51+
compressed={true}
52+
fullWidth={true}
53+
tabIndex={0}
54+
onKeyDown={onKeyDown}
55+
onChange={handleOnChange}
56+
/>
57+
</div>
58+
<GameCompass />
59+
</div>
4360
);
4461
};

0 commit comments

Comments
 (0)