Commit 7050a53 1 parent cf80ae0 commit 7050a53 Copy full SHA for 7050a53
File tree 1 file changed +26
-9
lines changed
electron/renderer/components/game
1 file changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { useCallback } from 'react';
4
4
import { isEmpty } from '../../../common/string/string.utils.js' ;
5
5
import { useCommandHistory } from '../../hooks/command-history.jsx' ;
6
6
import { runInBackground } from '../../lib/async/run-in-background.js' ;
7
+ import { GameCompass } from './game-compass.jsx' ;
7
8
import { GameRoundTime } from './game-roundtime.jsx' ;
8
9
9
10
export interface GameBottomBarProps {
@@ -31,14 +32,30 @@ export const GameBottomBar: React.FC<GameBottomBarProps> = (
31
32
) ;
32
33
33
34
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 >
43
60
) ;
44
61
} ;
You can’t perform that action at this time.
0 commit comments