mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-02 11:32:35 +02:00
Each channel item in the desktop sidebar and the mobile dropdown now surfaces the timestamp of the last message (HH:MM today / DD.MM older) and a truncated plain-text preview (up to 60 chars, mentions stripped). Sidebar clamps preview to 2 lines, dropdown to 1 line. Empty channels render as a single-line name, unchanged. - api.py: /api/messages/updates returns last_message_preview + last_message_time; new _make_preview helper strips @[name] syntax and truncates with ellipsis. - app.js: new channelLastMessages state populated by the poll loop and by the new_message socket event; populateChannelSidebar, renderChannelDropdownItems, and updateChannelSidebarBadges build and maintain the two-row layout (.channel-item-top + .channel-item-preview). - style.css: sidebar and dropdown items switch to column flex; new .channel-item-top, .channel-last-time, .channel-item-preview rules. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>