Change the submit button size

This commit is contained in:
Ji Tang
2023-04-23 22:27:15 +02:00
committed by josc146
parent 2e1dcf372d
commit b833cd1707
7 changed files with 17 additions and 12 deletions
+1 -12
View File
@@ -48,20 +48,9 @@ export function InputBox({ onSubmit, enabled, port }) {
onKeyDown={handleKeyDownOrClick}
/>
<button
className="submit-button"
style={{
position: 'absolute',
top: '50%',
right: '8px',
transform: 'translateY(-50%)',
cursor: 'pointer',
backgroundColor: enabled ? '#30a14e' : '#cf222e',
color: 'white',
border: '1px solid',
borderRadius: '6px',
borderColor: 'rgba(31,35,40,0.15)',
padding: '0.2em 0.8em',
fontSize: '1.2em',
boxShadow: '0 1px 0 rgba(31,35,40,0.1)',
}}
onClick={handleKeyDownOrClick}
>