incognitolm commited on
Commit
829354a
Β·
verified Β·
1 Parent(s): cbd9812

Update public/css/input.css

Browse files
Files changed (1) hide show
  1. public/css/input.css +62 -0
public/css/input.css CHANGED
@@ -160,3 +160,65 @@
160
  .send-btn-bottom:hover { opacity: 0.88; transform: scale(1.05); }
161
  .send-btn-bottom:disabled { opacity: 0.4; transform: none; cursor: not-allowed; }
162
  .send-btn-bottom.stop { background: var(--bg-active); color: var(--text); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  .send-btn-bottom:hover { opacity: 0.88; transform: scale(1.05); }
161
  .send-btn-bottom:disabled { opacity: 0.4; transform: none; cursor: not-allowed; }
162
  .send-btn-bottom.stop { background: var(--bg-active); color: var(--text); }
163
+
164
+ /* ── Attachment previews inside inputs ───────────────────────────────────── */
165
+ .input-file-preview-row {
166
+ display: none;
167
+ flex-wrap: wrap;
168
+ gap: 6px;
169
+ padding: 6px 4px 2px;
170
+ }
171
+
172
+ .center-input-row {
173
+ display: flex;
174
+ align-items: flex-end;
175
+ gap: 6px;
176
+ }
177
+
178
+ .attach-preview-item {
179
+ position: relative;
180
+ display: inline-flex;
181
+ align-items: center;
182
+ flex-shrink: 0;
183
+ }
184
+
185
+ .attach-preview-item img {
186
+ width: 52px;
187
+ height: 52px;
188
+ object-fit: cover;
189
+ border-radius: var(--radius-sm);
190
+ display: block;
191
+ border: 1px solid var(--border-bright);
192
+ }
193
+
194
+ .attach-preview-remove {
195
+ position: absolute;
196
+ top: -5px;
197
+ right: -5px;
198
+ width: 16px;
199
+ height: 16px;
200
+ border-radius: 50%;
201
+ background: var(--bg-raised);
202
+ border: 1px solid var(--border-bright);
203
+ display: flex;
204
+ align-items: center;
205
+ justify-content: center;
206
+ font-size: 10px;
207
+ color: var(--text);
208
+ cursor: pointer;
209
+ z-index: 1;
210
+ line-height: 1;
211
+ }
212
+ .attach-preview-remove:hover { background: var(--bg-hover); }
213
+
214
+ /* ── Mobile: hide tool button text labels, show icons only ───────────────── */
215
+ @media (max-width: 600px) {
216
+ .tool-btn-sm span {
217
+ display: none;
218
+ }
219
+ .tool-btn-sm {
220
+ padding: 3px 6px;
221
+ min-width: 28px;
222
+ justify-content: center;
223
+ }
224
+ }