feat: edit post images (upload/remove) + fix captcha input in dark mode
- PostDetail edit modal: show existing images with delete button, upload new images (multi-file, 5MB limit), save replaces image list - API PUT /posts/:id accepts images array; omitting keeps original - lib/api updatePost passes images - NewPost/ReplyList captcha answer input: use CSS vars (was hardcoded #e2e8f0 border with white bg — glaring in dark mode)
This commit is contained in:
1 parent
ebc5201569
commit
4a30e79269
5 files changed
+60
-12
No files matched your search
@@ -132,7 +132,7 @@ export default function NewPost() {
|
||||
<input
|
||||
type="text"
|
||||
placeholder="答案"
|
||||
style={{ width: 80, padding: '8px 12px', border: '1px solid #e2e8f0', borderRadius: 4 }}
|
||||
style={{ width: 80, padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, background: 'var(--bg)', color: 'var(--text)', outline: 'none' }}
|
||||
value={captchaInput}
|
||||
onChange={(e) => setCaptchaInput(e.target.value)}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user