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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 KiB

After

Width:  |  Height:  |  Size: 267 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 188 KiB

+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}
>
+16
View File
@@ -213,6 +213,7 @@
.interact-input {
box-sizing: border-box;
padding: 5px 15px;
padding-right: 1em;
border: 0;
border-top: 1px solid var(--theme-border-color);
width: 100%;
@@ -223,6 +224,21 @@
max-height: 160px;
}
.submit-button {
position: absolute;
right: 1.1em;
bottom: 0.2em;
padding: 1px 6px;
cursor: pointer;
background-color: #30a14e;
color: white;
border: 1px solid;
border-radius: 6px;
border-color: rgba(31, 35, 40, 0.15);
font-size: 1em;
box-shadow: 0 1px 0 rgba(31, 35, 40, 0.1);
}
.dragbar {
cursor: move;
width: 42%;