feat: markdown rendering + dark mode input fixes + DM icon align
- Add marked dependency; render post/reply content and signature via
marked.parse (matches upstream). lib/markdown.js helper + CSS for
code/pre/blockquote/tables in glass theme
- Fix hardcoded #e2e8f0 white inputs in dark mode: NewPost title/content,
Modals report select, ReplyList, AdminForumSettings/Links/Users/Logs
- DM button: replace ✉️ emoji with upstream SVG chat bubble icon
This commit is contained in:
1 parent
9eed101caa
commit
156e178160
14 files changed
+98
-22
No files matched your search
@@ -4,6 +4,7 @@
|
||||
import { useState, useEffect, useCallback } from 'react';
|
||||
import { API } from '@/lib/api';
|
||||
import { useApp } from '../AppProvider';
|
||||
import { Icon } from '../Icons';
|
||||
import ConversationList from './ConversationList';
|
||||
import ChatWindow from './ChatWindow';
|
||||
|
||||
@@ -33,7 +34,7 @@ export function DMButton() {
|
||||
style={{ position: 'relative', padding: '6px 8px', background: 'none', border: 'none', cursor: 'pointer', color: 'var(--text-secondary)', borderRadius: 4, display: 'inline-flex', alignItems: 'center', justifyContent: 'center' }}
|
||||
onClick={() => window.dispatchEvent(new CustomEvent('forumlify-open-messages'))}
|
||||
>
|
||||
✉️
|
||||
<Icon name="message" size={20} />
|
||||
{unread > 0 && (
|
||||
<span style={{ position: 'absolute', top: -2, right: -2, background: '#ef4444', color: '#fff', borderRadius: '50%', padding: '2px 6px', fontSize: 10, fontWeight: 600, minWidth: 18, textAlign: 'center', lineHeight: 1.4 }}>
|
||||
{unread > 99 ? '99+' : unread}
|
||||
|
||||
Reference in new issue
Block a user