fix(chat): forward polish + scrollbar + image preview + media tabs
- #4: forward modal buttons now branded (bzc-* un-scoped from .bz-confirm); target rows get real checkboxes + border highlight; selected MESSAGES highlight in green with a filled tick (distinct from blue bubbles), checkbox on every message. - #5: forwarded messages show an italic 'Forwarded from <origin>' label; new fwd_from column preserves the true origin across re-forwards. - #6: image-preview arrows are smaller (32px) chevron icons, clear of the image (image max 82vw); icons.js?v=5. - #10: image preview now opens ABOVE the media modal (z 9900) and Esc/close returns to the media view instead of closing everything. - #11: Media/Links/Docs active tab underline is brand-blue, not green. - #2: chat-list + conversation scrollbars 6px, stepper arrows hidden; pagination adds a cooldown + overflow-anchor:none so scrolling up no longer sticks/jumps. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -189,9 +189,9 @@ const webhooks = {
|
||||
};
|
||||
|
||||
const messages = {
|
||||
send: ({ id, teamId, senderId, recipientId, body, replyTo, attachmentId, conversationId, mentions, msgType }) =>
|
||||
db.prepare('INSERT INTO messages (id,team_id,sender_id,recipient_id,body,created_at,reply_to,attachment_id,conversation_id,mentions,msg_type) VALUES (?,?,?,?,?,?,?,?,?,?,?)')
|
||||
.run(id, teamId, senderId, recipientId || '', body, now(), replyTo || null, attachmentId || null, conversationId || null, (mentions && mentions.length) ? JSON.stringify(mentions) : null, msgType || null),
|
||||
send: ({ id, teamId, senderId, recipientId, body, replyTo, attachmentId, conversationId, mentions, msgType, fwdFrom }) =>
|
||||
db.prepare('INSERT INTO messages (id,team_id,sender_id,recipient_id,body,created_at,reply_to,attachment_id,conversation_id,mentions,msg_type,fwd_from) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)')
|
||||
.run(id, teamId, senderId, recipientId || '', body, now(), replyTo || null, attachmentId || null, conversationId || null, (mentions && mentions.length) ? JSON.stringify(mentions) : null, msgType || null, fwdFrom || null),
|
||||
byId: (id) => db.prepare('SELECT * FROM messages WHERE id=?').get(id),
|
||||
byAttachment: (attachmentId) => db.prepare('SELECT * FROM messages WHERE attachment_id=? LIMIT 1').get(attachmentId),
|
||||
allByAttachment: (attachmentId) => db.prepare('SELECT sender_id, recipient_id, conversation_id FROM messages WHERE attachment_id=? AND deleted=0').all(attachmentId),
|
||||
|
||||
Reference in New Issue
Block a user