feat: enhance image components with draggable attribute and context menu handling

This commit is contained in:
2026-03-08 21:53:32 +11:00
parent b185e0b129
commit 30a7725769
7 changed files with 26 additions and 14 deletions

View File

@@ -202,7 +202,7 @@ function MessageNotifications() {
eventId: string;
isDm: boolean;
}) => {
const notificationTitle = `${username} - Paarrot`;
const notificationTitle = username;
const notificationBody = messageBody || 'New message';
/** Replicates TitleBar click navigation logic */

View File

@@ -119,10 +119,16 @@ export function DirectTab() {
</SidebarAvatar>
)}
</SidebarItemTooltip>
{directUnread && (
<SidebarItemBadge hasCount={directUnread.total > 0}>
{directUnread && directUnread.total > 0 && (
<div style={{
position: 'absolute',
bottom: '2px',
right: '2px',
pointerEvents: 'none',
zIndex: 2,
}}>
<UnreadBadge highlight={directUnread.highlight > 0} count={directUnread.total} />
</SidebarItemBadge>
</div>
)}
{menuAnchor && (
<PopOut