File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ export default function App() {
102
102
{ isTrading ? (
103
103
< div >
104
104
< div className = "mb-3 flex items-center justify-between gap-3 only:mb-0" >
105
- { showMenu ? (
106
- < label className = "group relative inline-flex cursor-pointer select-none items-center gap-2.5" >
105
+ { showMenu && (
106
+ < label className = "group relative inline-flex flex-shrink-0 cursor-pointer select-none items-center gap-2.5" >
107
107
< input
108
108
type = "checkbox"
109
109
className = "peer sr-only"
@@ -115,11 +115,9 @@ export default function App() {
115
115
{ isLong ? 'Long' : 'Short' } Mode
116
116
</ span >
117
117
</ label >
118
- ) : (
119
- < div className = "w-11" />
120
118
) }
121
- < Button onClick = { getPrice } >
122
- { showMenu ? 'Close ' : 'Open ' } Menu
119
+ < Button onClick = { getPrice } fullWidth >
120
+ { showMenu ? 'Stop ' : 'Start ' } Trading
123
121
</ Button >
124
122
</ div >
125
123
{ showMenu && (
@@ -133,7 +131,9 @@ export default function App() {
133
131
</ div >
134
132
) : (
135
133
< div className = "flex items-center justify-between gap-4" >
136
- < Button onClick = { startTrading } > Start Trading</ Button >
134
+ < Button onClick = { startTrading } fullWidth >
135
+ Start Trading
136
+ </ Button >
137
137
</ div >
138
138
) }
139
139
</ div >
You can’t perform that action at this time.
0 commit comments