Skip to content

Commit cf7618b

Browse files
committed
UI Enhancement: Made interface more compact and improved readability
1 parent 8239ddb commit cf7618b

File tree

1 file changed

+52
-61
lines changed

1 file changed

+52
-61
lines changed

src/styles.css

Lines changed: 52 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
border-radius: 4px;
88
padding: 8px 16px;
99
cursor: pointer;
10-
font-size: 14px;
10+
font-size: 16px;
1111
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
1212
transition: all 0.3s ease;
1313
}
@@ -43,7 +43,7 @@
4343
display: flex;
4444
flex-direction: column;
4545
height: 100%;
46-
padding: 16px;
46+
padding: 14px;
4747
box-sizing: border-box;
4848
background: var(--bg, #ffffff);
4949
color: var(--text, #1e293b);
@@ -80,44 +80,40 @@
8080
}
8181

8282
.context-controls {
83-
margin-bottom: 20px;
83+
margin-bottom: 12px;
8484
}
8585

8686
.context-header {
8787
display: flex;
88-
gap: 12px;
88+
gap: 8px;
8989
align-items: center;
90-
margin-bottom: 12px;
91-
height: 40px;
90+
margin-bottom: 8px;
91+
height: 32px;
9292
}
9393

9494
.context-mode-wrapper {
95-
width: 320px;
95+
width: 300px;
9696
}
9797

9898
.slider-container {
9999
display: flex;
100+
background: var(--bg-secondary, #f8fafc);
101+
border-radius: 6px;
102+
padding: 3px;
100103
position: relative;
101-
background: var(--light-bg, #f5f5f5);
102-
border-radius: 4px;
103-
padding: 4px;
104-
margin-bottom: 0;
105-
width: 100%;
106-
height: 40px;
107-
box-sizing: border-box;
104+
margin-bottom: 8px;
108105
}
109106

110107
.slider-option {
111108
flex: 1;
112109
text-align: center;
113-
padding: 8px 0;
110+
padding: 4px 8px;
111+
font-size: 12px;
114112
cursor: pointer;
115113
position: relative;
116114
z-index: 1;
117-
font-size: 14px;
118-
color: var(--text, #1e293b);
119-
line-height: 20px;
120-
user-select: none;
115+
color: var(--text, #64748b);
116+
transition: color 0.3s ease;
121117
}
122118

123119
.slider-highlight {
@@ -157,26 +153,30 @@
157153

158154
#content-preview {
159155
position: relative;
160-
min-height: 100px;
161-
padding: 10px;
156+
min-height: 40px;
157+
max-height: 140px;
158+
padding: 6px 8px;
162159
border: 1px solid #ddd;
163160
border-radius: 4px;
164-
margin-bottom: 10px;
161+
margin-bottom: 8px;
162+
font-size: 12px;
163+
line-height: 1.4;
164+
overflow-y: auto;
165165
}
166166

167167
#drop-zone {
168168
border: 2px dashed var(--border, #ddd);
169169
border-radius: 4px;
170-
padding: 20px;
170+
padding: 12px;
171171
text-align: center;
172172
color: var(--text, #666);
173173
transition: all 0.3s ease;
174-
min-height: 120px;
174+
min-height: 80px;
175175
display: flex;
176176
align-items: center;
177177
justify-content: center;
178178
background: var(--bg, #ffffff);
179-
margin: 10px 0;
179+
margin: 8px 0;
180180
cursor: pointer;
181181
}
182182

@@ -187,7 +187,7 @@
187187

188188
#drop-zone p {
189189
margin: 0;
190-
font-size: 14px;
190+
font-size: 12px;
191191
color: var(--text, #666);
192192
}
193193

@@ -214,7 +214,7 @@
214214
flex: 1;
215215
overflow-y: auto;
216216
margin-bottom: 0;
217-
padding: 16px;
217+
padding: 12px;
218218
background: var(--bg, #ffffff);
219219
color: var(--text, #1e293b);
220220
font-family: inherit;
@@ -233,40 +233,40 @@
233233
position: sticky;
234234
bottom: 0;
235235
background: var(--bg, #ffffff);
236-
padding: 16px;
237-
margin: 0 -16px;
236+
padding: 8px;
237+
margin: 0 -12px;
238238
border-top: 1px solid var(--border, #e2e8f0);
239239
}
240240

241241
#question {
242242
width: 100%;
243-
padding: 12px;
243+
padding: 8px;
244244
border: 1px solid var(--border, #e2e8f0);
245245
border-radius: 6px;
246-
margin-bottom: 12px;
246+
margin-bottom: 8px;
247247
resize: none;
248248
font-family: inherit;
249249
font-size: 14px;
250250
background: var(--bg, #ffffff);
251251
color: var(--text, #1e293b);
252-
min-height: 60px;
252+
min-height: 40px;
253253
}
254254

255255
.bottom-controls {
256256
display: flex;
257-
gap: 12px;
257+
gap: 8px;
258258
align-items: center;
259259
}
260260

261261
#ask-button {
262262
flex: 1;
263-
padding: 8px 16px;
263+
padding: 6px 12px;
264264
background: var(--button-bg, #3b82f6);
265265
color: white;
266266
border: none;
267267
border-radius: 6px;
268268
cursor: pointer;
269-
font-size: 14px;
269+
font-size: 13px;
270270
font-family: inherit;
271271
font-weight: 500;
272272
transition: all 0.2s ease;
@@ -280,10 +280,10 @@
280280
#openai-url,
281281
#model-selector {
282282
width: 100%;
283-
padding: 6px 8px;
283+
padding: 4px 6px;
284284
border: 1px solid #cbd5e1;
285285
border-radius: 6px;
286-
font-size: 13px;
286+
font-size: 12px;
287287
box-sizing: border-box;
288288
}
289289

@@ -511,11 +511,11 @@
511511
}
512512

513513
.ai-chat-message {
514-
padding: 12px 16px;
514+
padding: 8px 12px;
515515
border-radius: 12px;
516516
width: fit-content;
517517
max-width: 85%;
518-
margin-bottom: 16px;
518+
margin-bottom: 12px;
519519
font-size: 14px;
520520
line-height: 1.5;
521521
position: relative;
@@ -551,10 +551,10 @@
551551
display: flex;
552552
justify-content: space-between;
553553
align-items: center;
554-
margin-top: 8px;
555-
padding-top: 8px;
554+
margin-top: 6px;
555+
padding-top: 6px;
556556
border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1));
557-
font-size: 11px;
557+
font-size: 10px;
558558
color: var(--light-text, #94a3b8);
559559
user-select: none;
560560
}
@@ -764,7 +764,7 @@
764764
}
765765

766766
#screenshot-btn {
767-
padding: 8px;
767+
padding: 6px;
768768
background: var(--bg, #ffffff);
769769
color: var(--text, #1e293b);
770770
border: 1px solid var(--border, #e2e8f0);
@@ -774,8 +774,8 @@
774774
display: flex;
775775
align-items: center;
776776
justify-content: center;
777-
width: 40px;
778-
height: 40px;
777+
width: 32px;
778+
height: 32px;
779779
flex: none;
780780
box-sizing: border-box;
781781
}
@@ -795,16 +795,16 @@
795795
}
796796

797797
.ai-clear-chat-history {
798-
padding: 8px 16px;
798+
padding: 6px 12px;
799799
background-color: #ef4444;
800800
color: white;
801801
border: none;
802802
border-radius: 6px;
803-
font-size: 13px;
803+
font-size: 12px;
804804
font-weight: 500;
805805
cursor: pointer;
806806
transition: all 0.2s ease;
807-
margin: 8px auto 0;
807+
margin: 6px auto 0;
808808
display: block;
809809
position: sticky;
810810
bottom: 0;
@@ -848,24 +848,15 @@
848848
background: var(--hover, rgba(255, 255, 255, 0.1));
849849
}
850850

851-
#content-preview {
852-
position: relative;
853-
min-height: 100px;
854-
padding: 10px;
855-
border: 1px solid #ddd;
856-
border-radius: 4px;
857-
margin-bottom: 10px;
858-
}
859-
860851
.subtitles-preview {
861852
margin-top: 4px;
862-
padding: 12px;
853+
padding: 8px;
863854
background: var(--bg-secondary, #f8fafc);
864855
border: 1px solid var(--border, #e2e8f0);
865856
border-radius: 6px;
866-
font-size: 14px;
867-
line-height: 1.5;
868-
max-height: 200px;
857+
font-size: 12px;
858+
line-height: 1.4;
859+
max-height: 150px;
869860
overflow-y: auto;
870861
white-space: pre-wrap;
871862
color: var(--text, #1e293b);

0 commit comments

Comments
 (0)