fix: chat input hidden on small viewports
- Chat modal fixed height 70vh, message list flex:1 with minHeight:0 - Input row flexShrink:0 so it's never compressed out of view
This commit is contained in:
1 parent
5d90e5c415
commit
ac6e2dab84
2 files changed
+4
-4
No files matched your search
@@ -22,7 +22,7 @@ export default function ConversationList({ onOpenChat, onClose }) {
|
||||
|
||||
return (
|
||||
<div className="modal active" onClick={(e) => { if (e.target === e.currentTarget) onClose(); }}>
|
||||
<div className="modal-content" style={{ display: 'flex', flexDirection: 'column', maxHeight: '70vh', padding: 0, overflow: 'hidden' }}>
|
||||
<div className="modal-content" style={{ display: 'flex', flexDirection: 'column', height: '70vh', maxHeight: '70vh', padding: 0, overflow: 'hidden' }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '16px 20px', borderBottom: '1px solid var(--border)' }}>
|
||||
<h2 style={{ fontSize: 18, margin: 0 }}>✉️ 私信</h2>
|
||||
<span className="close" onClick={onClose} style={{ fontSize: 24, cursor: 'pointer', color: 'var(--text-light)', lineHeight: 1 }}>×</span>
|
||||
|
||||
Reference in new issue
Block a user