Skip to content

Commit b833cd1

Browse files
tang-jijosStorer
authored andcommitted
Change the submit button size
1 parent 2e1dcf3 commit b833cd1

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed
-734 Bytes
Loading
Loading
-701 Bytes
Loading
-492 Bytes
Loading

screenshots/preview_youtube.jpg

1.04 KB
Loading

src/components/InputBox/index.jsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,9 @@ export function InputBox({ onSubmit, enabled, port }) {
4848
onKeyDown={handleKeyDownOrClick}
4949
/>
5050
<button
51+
className="submit-button"
5152
style={{
52-
position: 'absolute',
53-
top: '50%',
54-
right: '8px',
55-
transform: 'translateY(-50%)',
56-
cursor: 'pointer',
5753
backgroundColor: enabled ? '#30a14e' : '#cf222e',
58-
color: 'white',
59-
border: '1px solid',
60-
borderRadius: '6px',
61-
borderColor: 'rgba(31,35,40,0.15)',
62-
padding: '0.2em 0.8em',
63-
fontSize: '1.2em',
64-
boxShadow: '0 1px 0 rgba(31,35,40,0.1)',
6554
}}
6655
onClick={handleKeyDownOrClick}
6756
>

src/content-script/styles.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@
213213
.interact-input {
214214
box-sizing: border-box;
215215
padding: 5px 15px;
216+
padding-right: 1em;
216217
border: 0;
217218
border-top: 1px solid var(--theme-border-color);
218219
width: 100%;
@@ -223,6 +224,21 @@
223224
max-height: 160px;
224225
}
225226

227+
.submit-button {
228+
position: absolute;
229+
right: 1.1em;
230+
bottom: 0.2em;
231+
padding: 1px 6px;
232+
cursor: pointer;
233+
background-color: #30a14e;
234+
color: white;
235+
border: 1px solid;
236+
border-radius: 6px;
237+
border-color: rgba(31, 35, 40, 0.15);
238+
font-size: 1em;
239+
box-shadow: 0 1px 0 rgba(31, 35, 40, 0.1);
240+
}
241+
226242
.dragbar {
227243
cursor: move;
228244
width: 42%;

0 commit comments

Comments
 (0)