atagen

malice

public
Star0
Watch0
df3c0f2b3da49cedd2da20209bd76e39695179bc
2
ssh://brewery@pls.lobotomise.me:33/atagen/malice.git

Blame: web/src/lib/MessageRow.svelte

973f8fbdaf80atagen2026-09-28 09:10 UTC1
<script lang="ts">
973f8fbdaf80atagen2026-09-28 09:10 UTC2
  import MediaAttachmentView from './MediaAttachmentView.svelte';
973f8fbdaf80atagen2026-09-28 09:10 UTC3
  import MxcAvatar from './MxcAvatar.svelte';
544a170ead2catagen2026-10-20 11:47 UTC4
  import Emoji from './Emoji.svelte';
544a170ead2catagen2026-10-20 11:47 UTC5
  import EmojiText from './EmojiText.svelte';
df3c0f2b3da4atagen2026-10-22 13:07 UTC6
  import MessageText from './MessageText.svelte';
544a170ead2catagen2026-10-20 11:47 UTC7
  import ReactionPicker from './ReactionPicker.svelte';
b8ab00377c20atagen2026-10-22 05:13 UTC8
  import LinkCard from './LinkCard.svelte';
ecb8598b38afatagen2026-10-22 09:19 UTC9
  import { mediaUrl, messageMediaUrl } from './api';
df3c0f2b3da4atagen2026-10-22 13:07 UTC10
  import type { ImagePack, LinkPreview, Person, QuickReaction, ReplyReference, SendState, TimelineContent, TimelineEvent } from './types';
973f8fbdaf80atagen2026-09-28 09:10 UTC11
  import { senderLabel } from './types';
973f8fbdaf80atagen2026-09-28 09:10 UTC12
  import { formatClock, formatDay, initialsOf, senderHue } from './format';
973f8fbdaf80atagen2026-09-28 09:10 UTC13
  import { findUrls } from './urls';
973f8fbdaf80atagen2026-09-28 09:10 UTC14
973f8fbdaf80atagen2026-09-28 09:10 UTC15
  export let itemId: string;
973f8fbdaf80atagen2026-09-28 09:10 UTC16
  export let event: TimelineEvent;
973f8fbdaf80atagen2026-09-28 09:10 UTC17
  export let showSender: boolean;
973f8fbdaf80atagen2026-09-28 09:10 UTC18
  export let reacting: boolean;
ecb8598b38afatagen2026-10-22 09:19 UTC19
  export let onReact: (eventId: string, key: string, shortcode?: string) => void;
973f8fbdaf80atagen2026-09-28 09:10 UTC20
  export let senderAvatar: string | null = null;
544a170ead2catagen2026-10-20 11:47 UTC21
  export let quickReactions: QuickReaction[] = [];
544a170ead2catagen2026-10-20 11:47 UTC22
  export let packs: ImagePack[] = [];
544a170ead2catagen2026-10-20 11:47 UTC23
  export let onQuickChange: (list: QuickReaction[]) => void = () => {};
ecb8598b38afatagen2026-10-22 09:19 UTC24
  export let linkPreviews: Record<string, LinkPreview | null> = {};
ecb8598b38afatagen2026-10-22 09:19 UTC25
  export let loadPreview: ((url: string) => void) | null = null;
df3c0f2b3da4atagen2026-10-22 13:07 UTC26
  export let people: Record<string, Person> = {};
df3c0f2b3da4atagen2026-10-22 13:07 UTC27
  export let onReply: ((target: ReplyReference) => void) | null = null;
df3c0f2b3da4atagen2026-10-22 13:07 UTC28
  export let onJump: ((eventId: string) => void) | null = null;
df3c0f2b3da4atagen2026-10-22 13:07 UTC29
  export let showSent = true;
973f8fbdaf80atagen2026-09-28 09:10 UTC30
544a170ead2catagen2026-10-20 11:47 UTC31
  const PICKER_WIDTH = 320;
544a170ead2catagen2026-10-20 11:47 UTC32
  const PICKER_HEIGHT = 380;
544a170ead2catagen2026-10-20 11:47 UTC33
  const PICKER_MARGIN = 8;
df3c0f2b3da4atagen2026-10-22 13:07 UTC34
  const MAX_READERS = 3;
544a170ead2catagen2026-10-20 11:47 UTC35
544a170ead2catagen2026-10-20 11:47 UTC36
  let row: HTMLDivElement;
544a170ead2catagen2026-10-20 11:47 UTC37
  let pickerPop: HTMLDivElement | undefined;
544a170ead2catagen2026-10-20 11:47 UTC38
  let selected = false;
544a170ead2catagen2026-10-20 11:47 UTC39
  let pickerOpen = false;
544a170ead2catagen2026-10-20 11:47 UTC40
  let pickerStyle = '';
973f8fbdaf80atagen2026-09-28 09:10 UTC41
973f8fbdaf80atagen2026-09-28 09:10 UTC42
  const MEMBERSHIP_LABELS: Record<string, string> = {
973f8fbdaf80atagen2026-09-28 09:10 UTC43
    Joined: 'joined the room',
973f8fbdaf80atagen2026-09-28 09:10 UTC44
    Left: 'left the room',
973f8fbdaf80atagen2026-09-28 09:10 UTC45
    Banned: 'was banned',
973f8fbdaf80atagen2026-09-28 09:10 UTC46
    Unbanned: 'was unbanned',
973f8fbdaf80atagen2026-09-28 09:10 UTC47
    Kicked: 'was kicked',
973f8fbdaf80atagen2026-09-28 09:10 UTC48
    KickedAndBanned: 'was kicked and banned',
973f8fbdaf80atagen2026-09-28 09:10 UTC49
    Invited: 'was invited',
973f8fbdaf80atagen2026-09-28 09:10 UTC50
    InvitationAccepted: 'accepted the invite',
973f8fbdaf80atagen2026-09-28 09:10 UTC51
    InvitationRejected: 'rejected the invite',
973f8fbdaf80atagen2026-09-28 09:10 UTC52
    InvitationRevoked: 'had the invite revoked',
973f8fbdaf80atagen2026-09-28 09:10 UTC53
    Knocked: 'requested to join',
973f8fbdaf80atagen2026-09-28 09:10 UTC54
    KnockAccepted: 'was let in',
973f8fbdaf80atagen2026-09-28 09:10 UTC55
    KnockRetracted: 'withdrew the request to join',
973f8fbdaf80atagen2026-09-28 09:10 UTC56
    KnockDenied: 'had the request to join denied'
973f8fbdaf80atagen2026-09-28 09:10 UTC57
  };
973f8fbdaf80atagen2026-09-28 09:10 UTC58
973f8fbdaf80atagen2026-09-28 09:10 UTC59
  $: name = senderLabel(event.sender);
973f8fbdaf80atagen2026-09-28 09:10 UTC60
  $: displayName = event.sender.name_ambiguous ? `${name} (${event.sender.user_id})` : name;
df3c0f2b3da4atagen2026-10-22 13:07 UTC61
  $: readers = event.read_by.map((id) => people[id] ?? { user_id: id, name: id, avatar: null });
973f8fbdaf80atagen2026-09-28 09:10 UTC62
  $: interactive = event.content.kind === 'Message' || event.content.kind === 'Sticker' || event.content.kind === 'Poll';
973f8fbdaf80atagen2026-09-28 09:10 UTC63
  $: previews = event.content.kind === 'Message' ? findUrls(event.content.message.body) : [];
ecb8598b38afatagen2026-10-22 09:19 UTC64
  $: bundled = event.content.kind === 'Message' ? event.content.message.link_previews : [];
ecb8598b38afatagen2026-10-22 09:19 UTC65
  $: if (loadPreview) {
ecb8598b38afatagen2026-10-22 09:19 UTC66
    for (const link of previews) {
ecb8598b38afatagen2026-10-22 09:19 UTC67
      if (!bundled.some((b) => b.url === link.href) && !(link.href in linkPreviews)) loadPreview(link.href);
ecb8598b38afatagen2026-10-22 09:19 UTC68
    }
ecb8598b38afatagen2026-10-22 09:19 UTC69
  }
973f8fbdaf80atagen2026-09-28 09:10 UTC70
973f8fbdaf80atagen2026-09-28 09:10 UTC71
  function sendLabel(state: SendState): string {
973f8fbdaf80atagen2026-09-28 09:10 UTC72
    if (state.kind === 'Failed') return state.will_retry ? 'failed — will retry' : 'failed — not delivered';
973f8fbdaf80atagen2026-09-28 09:10 UTC73
    if (state.kind === 'Sending') return 'sending…';
df3c0f2b3da4atagen2026-10-22 13:07 UTC74
    if (showSent && event.own && state.kind === 'Sent' && event.event_id) return '✓ sent';
973f8fbdaf80atagen2026-09-28 09:10 UTC75
    return '';
973f8fbdaf80atagen2026-09-28 09:10 UTC76
  }
973f8fbdaf80atagen2026-09-28 09:10 UTC77
544a170ead2catagen2026-10-20 11:47 UTC78
  function toggleSelected(e: MouseEvent) {
544a170ead2catagen2026-10-20 11:47 UTC79
    if (!interactive || (e.target as Element).closest('a, button, input, video, audio, .picker-pop')) return;
544a170ead2catagen2026-10-20 11:47 UTC80
    selected = !selected;
544a170ead2catagen2026-10-20 11:47 UTC81
  }
544a170ead2catagen2026-10-20 11:47 UTC82
544a170ead2catagen2026-10-20 11:47 UTC83
  function deselectOutside(e: PointerEvent) {
544a170ead2catagen2026-10-20 11:47 UTC84
    if (selected && !pickerOpen && !row.contains(e.target as Node)) selected = false;
544a170ead2catagen2026-10-20 11:47 UTC85
  }
544a170ead2catagen2026-10-20 11:47 UTC86
544a170ead2catagen2026-10-20 11:47 UTC87
  function openPicker(e: MouseEvent) {
544a170ead2catagen2026-10-20 11:47 UTC88
    if (pickerOpen) {
544a170ead2catagen2026-10-20 11:47 UTC89
      pickerOpen = false;
544a170ead2catagen2026-10-20 11:47 UTC90
      return;
544a170ead2catagen2026-10-20 11:47 UTC91
    }
544a170ead2catagen2026-10-20 11:47 UTC92
    const rect = (e.currentTarget as HTMLElement).getBoundingClientRect();
544a170ead2catagen2026-10-20 11:47 UTC93
    const height = Math.min(PICKER_HEIGHT, window.innerHeight - 2 * PICKER_MARGIN);
544a170ead2catagen2026-10-20 11:47 UTC94
    const below = window.innerHeight - rect.bottom - PICKER_MARGIN >= height;
544a170ead2catagen2026-10-20 11:47 UTC95
    const top = below ? rect.bottom + 4 : Math.max(PICKER_MARGIN, rect.top - height - 4);
544a170ead2catagen2026-10-20 11:47 UTC96
    const maxLeft = window.innerWidth - PICKER_WIDTH - PICKER_MARGIN;
544a170ead2catagen2026-10-20 11:47 UTC97
    const left = Math.max(PICKER_MARGIN, Math.min(rect.right - PICKER_WIDTH, maxLeft));
544a170ead2catagen2026-10-20 11:47 UTC98
    pickerStyle = `top:${top}px;left:${left}px;height:${height}px`;
544a170ead2catagen2026-10-20 11:47 UTC99
    selected = true;
544a170ead2catagen2026-10-20 11:47 UTC100
    pickerOpen = true;
544a170ead2catagen2026-10-20 11:47 UTC101
  }
544a170ead2catagen2026-10-20 11:47 UTC102
544a170ead2catagen2026-10-20 11:47 UTC103
  function closePicker() {
544a170ead2catagen2026-10-20 11:47 UTC104
    pickerOpen = false;
544a170ead2catagen2026-10-20 11:47 UTC105
  }
544a170ead2catagen2026-10-20 11:47 UTC106
ecb8598b38afatagen2026-10-22 09:19 UTC107
  function isImageKey(key: string): boolean {
ecb8598b38afatagen2026-10-22 09:19 UTC108
    return key.startsWith('mxc://') || packs.some((p) => p.images.some((i) => i.reaction_key === key));
ecb8598b38afatagen2026-10-22 09:19 UTC109
  }
ecb8598b38afatagen2026-10-22 09:19 UTC110
ecb8598b38afatagen2026-10-22 09:19 UTC111
  function react(key: string, shortcode: string | null) {
ecb8598b38afatagen2026-10-22 09:19 UTC112
    if (shortcode && isImageKey(key)) onReact(event.event_id ?? '', key, shortcode);
ecb8598b38afatagen2026-10-22 09:19 UTC113
    else onReact(event.event_id ?? '', key);
ecb8598b38afatagen2026-10-22 09:19 UTC114
  }
ecb8598b38afatagen2026-10-22 09:19 UTC115
df3c0f2b3da4atagen2026-10-22 13:07 UTC116
  function reply() {
df3c0f2b3da4atagen2026-10-22 13:07 UTC117
    if (!event.event_id || !onReply) return;
df3c0f2b3da4atagen2026-10-22 13:07 UTC118
    onReply({
df3c0f2b3da4atagen2026-10-22 13:07 UTC119
      event_id: event.event_id,
df3c0f2b3da4atagen2026-10-22 13:07 UTC120
      details: { kind: 'Ready', sender: event.sender, content: event.content, timestamp_ms: event.timestamp_ms }
df3c0f2b3da4atagen2026-10-22 13:07 UTC121
    });
df3c0f2b3da4atagen2026-10-22 13:07 UTC122
  }
df3c0f2b3da4atagen2026-10-22 13:07 UTC123
ecb8598b38afatagen2026-10-22 09:19 UTC124
  function pick(key: string, shortcode: string | null) {
544a170ead2catagen2026-10-20 11:47 UTC125
    pickerOpen = false;
ecb8598b38afatagen2026-10-22 09:19 UTC126
    react(key, shortcode);
544a170ead2catagen2026-10-20 11:47 UTC127
  }
544a170ead2catagen2026-10-20 11:47 UTC128
544a170ead2catagen2026-10-20 11:47 UTC129
  function closeOnScroll(e: Event) {
544a170ead2catagen2026-10-20 11:47 UTC130
    if (pickerOpen && !pickerPop?.contains(e.target as Node)) pickerOpen = false;
544a170ead2catagen2026-10-20 11:47 UTC131
  }
544a170ead2catagen2026-10-20 11:47 UTC132
973f8fbdaf80atagen2026-09-28 09:10 UTC133
  function actorLabel(userId: string, name: string | null): string {
973f8fbdaf80atagen2026-09-28 09:10 UTC134
    return name ?? userId;
973f8fbdaf80atagen2026-09-28 09:10 UTC135
  }
973f8fbdaf80atagen2026-09-28 09:10 UTC136
973f8fbdaf80atagen2026-09-28 09:10 UTC137
  function replyPreview(content: TimelineContent): string {
973f8fbdaf80atagen2026-09-28 09:10 UTC138
    if (content.kind === 'Message') return content.message.body;
973f8fbdaf80atagen2026-09-28 09:10 UTC139
    if (content.kind === 'Sticker') return content.body || 'Sticker';
973f8fbdaf80atagen2026-09-28 09:10 UTC140
    if (content.kind === 'Poll') return `Poll: ${content.question}`;
973f8fbdaf80atagen2026-09-28 09:10 UTC141
    if (content.kind === 'Redacted') return 'Message deleted';
973f8fbdaf80atagen2026-09-28 09:10 UTC142
    if (content.kind === 'UnableToDecrypt') return 'Unable to decrypt';
973f8fbdaf80atagen2026-09-28 09:10 UTC143
    return systemLine(content);
973f8fbdaf80atagen2026-09-28 09:10 UTC144
  }
973f8fbdaf80atagen2026-09-28 09:10 UTC145
973f8fbdaf80atagen2026-09-28 09:10 UTC146
  function systemLine(content: TimelineContent): string {
973f8fbdaf80atagen2026-09-28 09:10 UTC147
    switch (content.kind) {
973f8fbdaf80atagen2026-09-28 09:10 UTC148
      case 'Redacted':
973f8fbdaf80atagen2026-09-28 09:10 UTC149
        return 'Message deleted';
973f8fbdaf80atagen2026-09-28 09:10 UTC150
      case 'UnableToDecrypt':
973f8fbdaf80atagen2026-09-28 09:10 UTC151
        return `Message from ${displayName} could not be decrypted`;
973f8fbdaf80atagen2026-09-28 09:10 UTC152
      case 'Membership': {
973f8fbdaf80atagen2026-09-28 09:10 UTC153
        const who = actorLabel(content.user_id, content.display_name);
973f8fbdaf80atagen2026-09-28 09:10 UTC154
        return `${who} ${MEMBERSHIP_LABELS[content.change] ?? 'updated their membership'}`;
973f8fbdaf80atagen2026-09-28 09:10 UTC155
      }
973f8fbdaf80atagen2026-09-28 09:10 UTC156
      case 'Profile': {
973f8fbdaf80atagen2026-09-28 09:10 UTC157
        const who = actorLabel(content.user_id, null);
973f8fbdaf80atagen2026-09-28 09:10 UTC158
        const parts: string[] = [];
973f8fbdaf80atagen2026-09-28 09:10 UTC159
        if (content.display_name) {
973f8fbdaf80atagen2026-09-28 09:10 UTC160
          parts.push(
973f8fbdaf80atagen2026-09-28 09:10 UTC161
            content.display_name.new
973f8fbdaf80atagen2026-09-28 09:10 UTC162
              ? `changed their display name to "${content.display_name.new}"`
973f8fbdaf80atagen2026-09-28 09:10 UTC163
              : 'removed their display name'
973f8fbdaf80atagen2026-09-28 09:10 UTC164
          );
973f8fbdaf80atagen2026-09-28 09:10 UTC165
        }
973f8fbdaf80atagen2026-09-28 09:10 UTC166
        if (content.avatar) parts.push('changed their avatar');
973f8fbdaf80atagen2026-09-28 09:10 UTC167
        return `${who} ${parts.length > 0 ? parts.join(' and ') : 'updated their profile'}`;
973f8fbdaf80atagen2026-09-28 09:10 UTC168
      }
973f8fbdaf80atagen2026-09-28 09:10 UTC169
      case 'RoomName':
973f8fbdaf80atagen2026-09-28 09:10 UTC170
        return content.name
973f8fbdaf80atagen2026-09-28 09:10 UTC171
          ? `${displayName} changed the room name to "${content.name}"`
973f8fbdaf80atagen2026-09-28 09:10 UTC172
          : `${displayName} removed the room name`;
973f8fbdaf80atagen2026-09-28 09:10 UTC173
      case 'RoomTopic':
973f8fbdaf80atagen2026-09-28 09:10 UTC174
        return content.topic
973f8fbdaf80atagen2026-09-28 09:10 UTC175
          ? `${displayName} changed the topic to "${content.topic}"`
973f8fbdaf80atagen2026-09-28 09:10 UTC176
          : `${displayName} removed the topic`;
973f8fbdaf80atagen2026-09-28 09:10 UTC177
      case 'RoomAvatar':
973f8fbdaf80atagen2026-09-28 09:10 UTC178
        return content.avatar ? `${displayName} changed the room avatar` : `${displayName} removed the room avatar`;
973f8fbdaf80atagen2026-09-28 09:10 UTC179
      case 'EncryptionEnabled':
973f8fbdaf80atagen2026-09-28 09:10 UTC180
        return `${displayName} enabled encryption in this room`;
973f8fbdaf80atagen2026-09-28 09:10 UTC181
      case 'RoomCreated':
973f8fbdaf80atagen2026-09-28 09:10 UTC182
        return `${displayName} created the room`;
973f8fbdaf80atagen2026-09-28 09:10 UTC183
      case 'RoomUpgraded':
973f8fbdaf80atagen2026-09-28 09:10 UTC184
        return `${displayName} upgraded the room to a new version`;
973f8fbdaf80atagen2026-09-28 09:10 UTC185
      case 'OtherState':
973f8fbdaf80atagen2026-09-28 09:10 UTC186
        return `${displayName} sent a state event (${content.event_type})`;
973f8fbdaf80atagen2026-09-28 09:10 UTC187
      case 'Other':
973f8fbdaf80atagen2026-09-28 09:10 UTC188
        return `${displayName} sent an event (${content.event_type})`;
973f8fbdaf80atagen2026-09-28 09:10 UTC189
      default:
973f8fbdaf80atagen2026-09-28 09:10 UTC190
        return displayName;
973f8fbdaf80atagen2026-09-28 09:10 UTC191
    }
973f8fbdaf80atagen2026-09-28 09:10 UTC192
  }
973f8fbdaf80atagen2026-09-28 09:10 UTC193
</script>
973f8fbdaf80atagen2026-09-28 09:10 UTC194
544a170ead2catagen2026-10-20 11:47 UTC195
<svelte:window
544a170ead2catagen2026-10-20 11:47 UTC196
  on:pointerdown={deselectOutside}
544a170ead2catagen2026-10-20 11:47 UTC197
  on:keydown={(e) => e.key === 'Escape' && (selected = false)}
544a170ead2catagen2026-10-20 11:47 UTC198
  on:scroll|capture={closeOnScroll}
544a170ead2catagen2026-10-20 11:47 UTC199
  on:resize={closePicker}
544a170ead2catagen2026-10-20 11:47 UTC200
/>
544a170ead2catagen2026-10-20 11:47 UTC201
544a170ead2catagen2026-10-20 11:47 UTC202
<!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->
544a170ead2catagen2026-10-20 11:47 UTC203
<div
544a170ead2catagen2026-10-20 11:47 UTC204
  class="msg"
544a170ead2catagen2026-10-20 11:47 UTC205
  class:own={event.own}
544a170ead2catagen2026-10-20 11:47 UTC206
  class:system={!interactive}
df3c0f2b3da4atagen2026-10-22 13:07 UTC207
  class:has-readers={interactive && readers.length > 0}
544a170ead2catagen2026-10-20 11:47 UTC208
  class:selected
544a170ead2catagen2026-10-20 11:47 UTC209
  data-item={itemId}
df3c0f2b3da4atagen2026-10-22 13:07 UTC210
  data-event={event.event_id}
544a170ead2catagen2026-10-20 11:47 UTC211
  bind:this={row}
544a170ead2catagen2026-10-20 11:47 UTC212
  on:click={toggleSelected}
544a170ead2catagen2026-10-20 11:47 UTC213
>
544a170ead2catagen2026-10-20 11:47 UTC214
  {#if interactive && event.event_id}
544a170ead2catagen2026-10-20 11:47 UTC215
    <div class="actions" role="toolbar" aria-label={`Actions for message from ${displayName}`}>
544a170ead2catagen2026-10-20 11:47 UTC216
      {#each quickReactions as r (r.key)}
544a170ead2catagen2026-10-20 11:47 UTC217
        {@const label = r.shortcode ? `:${r.shortcode}:` : r.key}
544a170ead2catagen2026-10-20 11:47 UTC218
        <button
544a170ead2catagen2026-10-20 11:47 UTC219
          type="button"
544a170ead2catagen2026-10-20 11:47 UTC220
          title={`React ${label}`}
544a170ead2catagen2026-10-20 11:47 UTC221
          aria-label={`React ${label} to message from ${displayName}`}
544a170ead2catagen2026-10-20 11:47 UTC222
          disabled={reacting}
ecb8598b38afatagen2026-10-22 09:19 UTC223
          on:click={() => react(r.key, r.shortcode)}
544a170ead2catagen2026-10-20 11:47 UTC224
        >
544a170ead2catagen2026-10-20 11:47 UTC225
          {#if r.key.startsWith('mxc://')}
544a170ead2catagen2026-10-20 11:47 UTC226
            <img class="emote" src={mediaUrl(r.key) ?? ''} alt="" />
544a170ead2catagen2026-10-20 11:47 UTC227
          {:else}
544a170ead2catagen2026-10-20 11:47 UTC228
            <Emoji emoji={r.key} size={18} />
544a170ead2catagen2026-10-20 11:47 UTC229
          {/if}
544a170ead2catagen2026-10-20 11:47 UTC230
        </button>
544a170ead2catagen2026-10-20 11:47 UTC231
      {/each}
544a170ead2catagen2026-10-20 11:47 UTC232
      <button
544a170ead2catagen2026-10-20 11:47 UTC233
        type="button"
544a170ead2catagen2026-10-20 11:47 UTC234
        title="Add reaction"
544a170ead2catagen2026-10-20 11:47 UTC235
        aria-label={`Add reaction to message from ${displayName}`}
544a170ead2catagen2026-10-20 11:47 UTC236
        aria-haspopup="dialog"
544a170ead2catagen2026-10-20 11:47 UTC237
        aria-expanded={pickerOpen}
544a170ead2catagen2026-10-20 11:47 UTC238
        on:pointerdown|stopPropagation
544a170ead2catagen2026-10-20 11:47 UTC239
        on:click={openPicker}
544a170ead2catagen2026-10-20 11:47 UTC240
      >
544a170ead2catagen2026-10-20 11:47 UTC241
        ☺+
544a170ead2catagen2026-10-20 11:47 UTC242
      </button>
df3c0f2b3da4atagen2026-10-22 13:07 UTC243
      {#if onReply}
df3c0f2b3da4atagen2026-10-22 13:07 UTC244
        <button
df3c0f2b3da4atagen2026-10-22 13:07 UTC245
          type="button"
df3c0f2b3da4atagen2026-10-22 13:07 UTC246
          title="Reply"
df3c0f2b3da4atagen2026-10-22 13:07 UTC247
          aria-label={`Reply to message from ${displayName}`}
df3c0f2b3da4atagen2026-10-22 13:07 UTC248
          on:click|stopPropagation={reply}
df3c0f2b3da4atagen2026-10-22 13:07 UTC249
        >
df3c0f2b3da4atagen2026-10-22 13:07 UTC250
          ↩
df3c0f2b3da4atagen2026-10-22 13:07 UTC251
        </button>
df3c0f2b3da4atagen2026-10-22 13:07 UTC252
      {/if}
544a170ead2catagen2026-10-20 11:47 UTC253
    </div>
544a170ead2catagen2026-10-20 11:47 UTC254
    {#if pickerOpen}
544a170ead2catagen2026-10-20 11:47 UTC255
      <div class="picker-pop" style={pickerStyle} bind:this={pickerPop}>
ecb8598b38afatagen2026-10-22 09:19 UTC256
        <ReactionPicker {packs} quick={quickReactions} onPick={pick} {onQuickChange} onClose={closePicker} />
544a170ead2catagen2026-10-20 11:47 UTC257
      </div>
544a170ead2catagen2026-10-20 11:47 UTC258
    {/if}
544a170ead2catagen2026-10-20 11:47 UTC259
  {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC260
  {#if showSender}
973f8fbdaf80atagen2026-09-28 09:10 UTC261
    {#if senderAvatar}
973f8fbdaf80atagen2026-09-28 09:10 UTC262
      <MxcAvatar mxc={senderAvatar} label={name} size={34} />
973f8fbdaf80atagen2026-09-28 09:10 UTC263
    {:else}
973f8fbdaf80atagen2026-09-28 09:10 UTC264
      <div
973f8fbdaf80atagen2026-09-28 09:10 UTC265
        class="avatar"
973f8fbdaf80atagen2026-09-28 09:10 UTC266
        aria-hidden="true"
973f8fbdaf80atagen2026-09-28 09:10 UTC267
        style={`background:hsl(${senderHue(event.sender.user_id)} 35% 32%)`}
973f8fbdaf80atagen2026-09-28 09:10 UTC268
      >
973f8fbdaf80atagen2026-09-28 09:10 UTC269
        {initialsOf(name)}
973f8fbdaf80atagen2026-09-28 09:10 UTC270
      </div>
973f8fbdaf80atagen2026-09-28 09:10 UTC271
    {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC272
  {:else}
973f8fbdaf80atagen2026-09-28 09:10 UTC273
    <div class="avatar-spacer" aria-hidden="true">
973f8fbdaf80atagen2026-09-28 09:10 UTC274
      <span class="hover-time">{formatClock(event.timestamp_ms)}</span>
973f8fbdaf80atagen2026-09-28 09:10 UTC275
    </div>
973f8fbdaf80atagen2026-09-28 09:10 UTC276
  {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC277
  <div class="msg-body">
973f8fbdaf80atagen2026-09-28 09:10 UTC278
    {#if showSender}
973f8fbdaf80atagen2026-09-28 09:10 UTC279
      <div class="msg-head">
df3c0f2b3da4atagen2026-10-22 13:07 UTC280
        <span class="sender" style={`color:hsl(${senderHue(event.sender.user_id)} 70% var(--name-lightness))`}>
973f8fbdaf80atagen2026-09-28 09:10 UTC281
          {displayName}
973f8fbdaf80atagen2026-09-28 09:10 UTC282
        </span>
973f8fbdaf80atagen2026-09-28 09:10 UTC283
        <time class="time" datetime={new Date(event.timestamp_ms).toISOString()}>
973f8fbdaf80atagen2026-09-28 09:10 UTC284
          {formatDay(event.timestamp_ms)} {formatClock(event.timestamp_ms)}
973f8fbdaf80atagen2026-09-28 09:10 UTC285
        </time>
973f8fbdaf80atagen2026-09-28 09:10 UTC286
        {#if event.content.kind === 'Message' && event.content.message.edited}
973f8fbdaf80atagen2026-09-28 09:10 UTC287
          <span class="edited" title="Edited">(edited)</span>
973f8fbdaf80atagen2026-09-28 09:10 UTC288
        {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC289
      </div>
973f8fbdaf80atagen2026-09-28 09:10 UTC290
    {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC291
    {#if event.reply_to}
df3c0f2b3da4atagen2026-10-22 13:07 UTC292
      {@const target = event.reply_to.event_id}
df3c0f2b3da4atagen2026-10-22 13:07 UTC293
      <button
df3c0f2b3da4atagen2026-10-22 13:07 UTC294
        type="button"
df3c0f2b3da4atagen2026-10-22 13:07 UTC295
        class="reply-quote"
df3c0f2b3da4atagen2026-10-22 13:07 UTC296
        disabled={!onJump}
df3c0f2b3da4atagen2026-10-22 13:07 UTC297
        title="Jump to the original message"
df3c0f2b3da4atagen2026-10-22 13:07 UTC298
        on:click|stopPropagation={() => onJump?.(target)}
df3c0f2b3da4atagen2026-10-22 13:07 UTC299
      >
973f8fbdaf80atagen2026-09-28 09:10 UTC300
        {#if event.reply_to.details.kind === 'Ready'}
df3c0f2b3da4atagen2026-10-22 13:07 UTC301
          <span class="reply-sender">{senderLabel(event.reply_to.details.sender)}</span>
df3c0f2b3da4atagen2026-10-22 13:07 UTC302
          <span class="reply-text"><EmojiText text={replyPreview(event.reply_to.details.content)} /></span>
973f8fbdaf80atagen2026-09-28 09:10 UTC303
        {:else if event.reply_to.details.kind === 'Pending'}
973f8fbdaf80atagen2026-09-28 09:10 UTC304
          Loading reply…
973f8fbdaf80atagen2026-09-28 09:10 UTC305
        {:else}
973f8fbdaf80atagen2026-09-28 09:10 UTC306
          Reply unavailable
973f8fbdaf80atagen2026-09-28 09:10 UTC307
        {/if}
df3c0f2b3da4atagen2026-10-22 13:07 UTC308
      </button>
973f8fbdaf80atagen2026-09-28 09:10 UTC309
    {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC310
973f8fbdaf80atagen2026-09-28 09:10 UTC311
    {#if event.content.kind === 'Message'}
973f8fbdaf80atagen2026-09-28 09:10 UTC312
      {@const m = event.content.message}
df3c0f2b3da4atagen2026-10-22 13:07 UTC313
      {@const text = m.media ? m.media.caption : m.body}
df3c0f2b3da4atagen2026-10-22 13:07 UTC314
      {#if text}
df3c0f2b3da4atagen2026-10-22 13:07 UTC315
        <div class="text" class:emote={m.kind === 'Emote'} class:notice={m.kind === 'Notice' || m.kind === 'ServerNotice'}>
df3c0f2b3da4atagen2026-10-22 13:07 UTC316
          {#if m.kind === 'Emote'}* {displayName} {/if}<MessageText {text} jumbo={m.kind === 'Text'} />
df3c0f2b3da4atagen2026-10-22 13:07 UTC317
        </div>
df3c0f2b3da4atagen2026-10-22 13:07 UTC318
      {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC319
      {#if m.media}
973f8fbdaf80atagen2026-09-28 09:10 UTC320
        <MediaAttachmentView attachment={m.media} />
973f8fbdaf80atagen2026-09-28 09:10 UTC321
      {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC322
      {#if previews.length > 0}
973f8fbdaf80atagen2026-09-28 09:10 UTC323
        <div class="link-previews">
973f8fbdaf80atagen2026-09-28 09:10 UTC324
          {#each previews as preview (preview.href)}
ecb8598b38afatagen2026-10-22 09:19 UTC325
            <LinkCard link={preview} preview={bundled.find((b) => b.url === preview.href) ?? linkPreviews[preview.href] ?? null} />
973f8fbdaf80atagen2026-09-28 09:10 UTC326
          {/each}
973f8fbdaf80atagen2026-09-28 09:10 UTC327
        </div>
973f8fbdaf80atagen2026-09-28 09:10 UTC328
      {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC329
    {:else if event.content.kind === 'Sticker'}
544a170ead2catagen2026-10-20 11:47 UTC330
      {#if event.content.body}<p class="text"><EmojiText text={event.content.body} /></p>{/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC331
      {#if event.content.media}
973f8fbdaf80atagen2026-09-28 09:10 UTC332
        <MediaAttachmentView attachment={event.content.media} />
973f8fbdaf80atagen2026-09-28 09:10 UTC333
      {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC334
    {:else if event.content.kind === 'Poll'}
973f8fbdaf80atagen2026-09-28 09:10 UTC335
      <p class="text">📊 {event.content.question}</p>
973f8fbdaf80atagen2026-09-28 09:10 UTC336
    {:else}
973f8fbdaf80atagen2026-09-28 09:10 UTC337
      <p class="system-line">{systemLine(event.content)}</p>
973f8fbdaf80atagen2026-09-28 09:10 UTC338
    {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC339
973f8fbdaf80atagen2026-09-28 09:10 UTC340
    {#if interactive && event.reactions.length > 0}
973f8fbdaf80atagen2026-09-28 09:10 UTC341
      <div class="reactions" aria-label="Reactions">
973f8fbdaf80atagen2026-09-28 09:10 UTC342
        {#each event.reactions as r (r.key)}
973f8fbdaf80atagen2026-09-28 09:10 UTC343
          <button
973f8fbdaf80atagen2026-09-28 09:10 UTC344
            type="button"
973f8fbdaf80atagen2026-09-28 09:10 UTC345
            class="reaction"
973f8fbdaf80atagen2026-09-28 09:10 UTC346
            class:mine={r.own}
973f8fbdaf80atagen2026-09-28 09:10 UTC347
            title={r.own ? 'You reacted — activate to remove' : `${r.count} reaction${r.count === 1 ? '' : 's'}`}
973f8fbdaf80atagen2026-09-28 09:10 UTC348
            disabled={!event.event_id || reacting}
973f8fbdaf80atagen2026-09-28 09:10 UTC349
            on:click={() => event.event_id && onReact(event.event_id, r.key)}
973f8fbdaf80atagen2026-09-28 09:10 UTC350
          >
ecb8598b38afatagen2026-10-22 09:19 UTC351
            {#if r.image}
ecb8598b38afatagen2026-10-22 09:19 UTC352
              <img class="emote" src={messageMediaUrl(r.image, 'Thumbnail')} alt={r.shortcode ?? ''} title={r.shortcode ?? ''} />
ecb8598b38afatagen2026-10-22 09:19 UTC353
            {:else if r.key.startsWith('mxc://')}
544a170ead2catagen2026-10-20 11:47 UTC354
              <img class="emote" src={mediaUrl(r.key) ?? ''} alt="" />
544a170ead2catagen2026-10-20 11:47 UTC355
            {:else}
544a170ead2catagen2026-10-20 11:47 UTC356
              <Emoji emoji={r.key} size={16} />
544a170ead2catagen2026-10-20 11:47 UTC357
            {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC358
            <span class="count">{r.count}</span>
973f8fbdaf80atagen2026-09-28 09:10 UTC359
          </button>
973f8fbdaf80atagen2026-09-28 09:10 UTC360
        {/each}
973f8fbdaf80atagen2026-09-28 09:10 UTC361
      </div>
973f8fbdaf80atagen2026-09-28 09:10 UTC362
    {/if}
df3c0f2b3da4atagen2026-10-22 13:07 UTC363
    {#if interactive && sendLabel(event.send_state)}
973f8fbdaf80atagen2026-09-28 09:10 UTC364
      <div class="msg-foot">
df3c0f2b3da4atagen2026-10-22 13:07 UTC365
        <span class="sendstate" class:failed={event.send_state.kind === 'Failed'}>{sendLabel(event.send_state)}</span>
df3c0f2b3da4atagen2026-10-22 13:07 UTC366
      </div>
df3c0f2b3da4atagen2026-10-22 13:07 UTC367
    {/if}
df3c0f2b3da4atagen2026-10-22 13:07 UTC368
    {#if interactive && readers.length > 0}
df3c0f2b3da4atagen2026-10-22 13:07 UTC369
      {@const seenBy = `Seen by ${readers.map((r) => r.name).join(', ')}`}
df3c0f2b3da4atagen2026-10-22 13:07 UTC370
      <div class="readby" title={seenBy} aria-label={seenBy} role="img">
df3c0f2b3da4atagen2026-10-22 13:07 UTC371
        {#each readers.slice(0, MAX_READERS) as r (r.user_id)}
df3c0f2b3da4atagen2026-10-22 13:07 UTC372
          <MxcAvatar mxc={r.avatar} label={r.name} size={16} />
df3c0f2b3da4atagen2026-10-22 13:07 UTC373
        {/each}
df3c0f2b3da4atagen2026-10-22 13:07 UTC374
        {#if readers.length > MAX_READERS}<span class="more">+{readers.length - MAX_READERS}</span>{/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC375
      </div>
973f8fbdaf80atagen2026-09-28 09:10 UTC376
    {/if}
973f8fbdaf80atagen2026-09-28 09:10 UTC377
  </div>
973f8fbdaf80atagen2026-09-28 09:10 UTC378
</div>
973f8fbdaf80atagen2026-09-28 09:10 UTC379
973f8fbdaf80atagen2026-09-28 09:10 UTC380
<style>
df3c0f2b3da4atagen2026-10-22 13:07 UTC381
  .msg { position: relative; display: flex; gap: 10px; padding: var(--msg-gap, 3px) 0; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC382
  .msg:hover, .msg.selected { background: var(--hover-faint); }
544a170ead2catagen2026-10-20 11:47 UTC383
  .msg:hover .hover-time, .msg.selected .hover-time { opacity: 1; }
544a170ead2catagen2026-10-20 11:47 UTC384
  .msg-foot { display: flex; align-items: center; gap: 8px; }
973f8fbdaf80atagen2026-09-28 09:10 UTC385
  .sendstate { font-size: 11px; color: var(--muted); }
973f8fbdaf80atagen2026-09-28 09:10 UTC386
  .sendstate.failed { color: var(--danger); }
973f8fbdaf80atagen2026-09-28 09:10 UTC387
  .link-previews { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-width: 420px; }
973f8fbdaf80atagen2026-09-28 09:10 UTC388
  .avatar {
973f8fbdaf80atagen2026-09-28 09:10 UTC389
    flex: none;
973f8fbdaf80atagen2026-09-28 09:10 UTC390
    width: 34px; height: 34px;
973f8fbdaf80atagen2026-09-28 09:10 UTC391
    border-radius: 50%;
973f8fbdaf80atagen2026-09-28 09:10 UTC392
    display: grid; place-items: center;
973f8fbdaf80atagen2026-09-28 09:10 UTC393
    font-size: 12px; font-weight: 700; color: #fff;
973f8fbdaf80atagen2026-09-28 09:10 UTC394
  }
973f8fbdaf80atagen2026-09-28 09:10 UTC395
  .avatar-spacer { flex: none; width: 34px; padding-top: 2px; text-align: center; }
973f8fbdaf80atagen2026-09-28 09:10 UTC396
  .hover-time { opacity: 0; font-size: 10.5px; color: var(--muted); }
973f8fbdaf80atagen2026-09-28 09:10 UTC397
  .msg-body { min-width: 0; flex: 1; }
973f8fbdaf80atagen2026-09-28 09:10 UTC398
  .msg-head { display: flex; align-items: baseline; gap: 8px; }
973f8fbdaf80atagen2026-09-28 09:10 UTC399
  .sender { font-weight: 650; font-size: 13.5px; }
973f8fbdaf80atagen2026-09-28 09:10 UTC400
  .time, .edited { color: var(--muted); font-size: 11.5px; }
973f8fbdaf80atagen2026-09-28 09:10 UTC401
  .reply-quote {
df3c0f2b3da4atagen2026-10-22 13:07 UTC402
    display: flex; gap: 6px; align-items: baseline;
df3c0f2b3da4atagen2026-10-22 13:07 UTC403
    max-width: min(100%, 520px);
df3c0f2b3da4atagen2026-10-22 13:07 UTC404
    border: none;
973f8fbdaf80atagen2026-09-28 09:10 UTC405
    border-left: 2px solid var(--accent);
973f8fbdaf80atagen2026-09-28 09:10 UTC406
    padding: 2px 8px;
973f8fbdaf80atagen2026-09-28 09:10 UTC407
    margin: 2px 0 4px;
973f8fbdaf80atagen2026-09-28 09:10 UTC408
    color: var(--muted);
973f8fbdaf80atagen2026-09-28 09:10 UTC409
    font-size: 12.5px;
df3c0f2b3da4atagen2026-10-22 13:07 UTC410
    text-align: left;
973f8fbdaf80atagen2026-09-28 09:10 UTC411
    background: var(--bg-soft);
973f8fbdaf80atagen2026-09-28 09:10 UTC412
    border-radius: 0 6px 6px 0;
df3c0f2b3da4atagen2026-10-22 13:07 UTC413
    cursor: pointer;
973f8fbdaf80atagen2026-09-28 09:10 UTC414
  }
df3c0f2b3da4atagen2026-10-22 13:07 UTC415
  .reply-quote:disabled { cursor: default; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC416
  .reply-quote:hover:not(:disabled) { color: var(--text); }
df3c0f2b3da4atagen2026-10-22 13:07 UTC417
  .reply-sender { flex: none; font-weight: 650; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC418
  .reply-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC419
  :global(.msg.flash) { animation: reply-flash 1.2s ease-out; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC420
  @keyframes -global-reply-flash { from { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
973f8fbdaf80atagen2026-09-28 09:10 UTC421
  .text {
973f8fbdaf80atagen2026-09-28 09:10 UTC422
    margin: 1px 0 2px;
973f8fbdaf80atagen2026-09-28 09:10 UTC423
    font-size: 14px;
df3c0f2b3da4atagen2026-10-22 13:07 UTC424
    line-height: var(--msg-line-height, 1.5);
973f8fbdaf80atagen2026-09-28 09:10 UTC425
    white-space: pre-wrap;
973f8fbdaf80atagen2026-09-28 09:10 UTC426
    overflow-wrap: anywhere;
973f8fbdaf80atagen2026-09-28 09:10 UTC427
  }
973f8fbdaf80atagen2026-09-28 09:10 UTC428
  .text.emote { font-style: italic; color: var(--muted); }
973f8fbdaf80atagen2026-09-28 09:10 UTC429
  .text.notice { color: var(--muted); }
973f8fbdaf80atagen2026-09-28 09:10 UTC430
  .system-line { color: var(--muted); font-size: 12.5px; font-style: italic; margin: 1px 0; }
973f8fbdaf80atagen2026-09-28 09:10 UTC431
  .msg.system { opacity: 0.85; }
973f8fbdaf80atagen2026-09-28 09:10 UTC432
  .reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
973f8fbdaf80atagen2026-09-28 09:10 UTC433
  .reaction {
973f8fbdaf80atagen2026-09-28 09:10 UTC434
    display: inline-flex; align-items: center; gap: 4px;
973f8fbdaf80atagen2026-09-28 09:10 UTC435
    background: var(--bg-soft);
973f8fbdaf80atagen2026-09-28 09:10 UTC436
    border: 1px solid var(--border);
973f8fbdaf80atagen2026-09-28 09:10 UTC437
    border-radius: 999px;
973f8fbdaf80atagen2026-09-28 09:10 UTC438
    padding: 1px 8px;
973f8fbdaf80atagen2026-09-28 09:10 UTC439
    font-size: 13px;
973f8fbdaf80atagen2026-09-28 09:10 UTC440
    color: var(--text);
973f8fbdaf80atagen2026-09-28 09:10 UTC441
    cursor: pointer;
973f8fbdaf80atagen2026-09-28 09:10 UTC442
  }
df3c0f2b3da4atagen2026-10-22 13:07 UTC443
  .reaction.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
973f8fbdaf80atagen2026-09-28 09:10 UTC444
  .reaction:disabled { cursor: default; opacity: 0.85; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC445
  .msg.has-readers .msg-body { padding-right: 72px; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC446
  .readby { position: absolute; right: 12px; bottom: 4px; display: flex; align-items: center; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC447
  .readby > :global(* + *) { margin-left: -4px; }
df3c0f2b3da4atagen2026-10-22 13:07 UTC448
  .readby :global(.mxc-avatar), .readby :global(.mxc-fallback) { box-shadow: 0 0 0 1.5px var(--bg); }
df3c0f2b3da4atagen2026-10-22 13:07 UTC449
  .readby .more { margin-left: 3px; font-size: 10.5px; color: var(--muted); }
544a170ead2catagen2026-10-20 11:47 UTC450
  .actions {
544a170ead2catagen2026-10-20 11:47 UTC451
    position: absolute; top: -14px; right: 12px; z-index: 2;
544a170ead2catagen2026-10-20 11:47 UTC452
    display: flex; gap: 2px;
544a170ead2catagen2026-10-20 11:47 UTC453
    padding: 2px;
544a170ead2catagen2026-10-20 11:47 UTC454
    background: var(--bg-soft);
544a170ead2catagen2026-10-20 11:47 UTC455
    border: 1px solid var(--border);
544a170ead2catagen2026-10-20 11:47 UTC456
    border-radius: 8px;
544a170ead2catagen2026-10-20 11:47 UTC457
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
544a170ead2catagen2026-10-20 11:47 UTC458
    opacity: 0;
544a170ead2catagen2026-10-20 11:47 UTC459
    pointer-events: none;
544a170ead2catagen2026-10-20 11:47 UTC460
  }
544a170ead2catagen2026-10-20 11:47 UTC461
  .msg:hover .actions, .msg:focus-within .actions, .msg.selected .actions { opacity: 1; pointer-events: auto; }
544a170ead2catagen2026-10-20 11:47 UTC462
  .actions button {
973f8fbdaf80atagen2026-09-28 09:10 UTC463
    background: transparent;
973f8fbdaf80atagen2026-09-28 09:10 UTC464
    border: 1px solid transparent;
973f8fbdaf80atagen2026-09-28 09:10 UTC465
    border-radius: 6px;
973f8fbdaf80atagen2026-09-28 09:10 UTC466
    cursor: pointer;
544a170ead2catagen2026-10-20 11:47 UTC467
    font-size: 14px;
544a170ead2catagen2026-10-20 11:47 UTC468
    padding: 1px 5px;
973f8fbdaf80atagen2026-09-28 09:10 UTC469
  }
df3c0f2b3da4atagen2026-10-22 13:07 UTC470
  .actions button:hover:not(:disabled) { border-color: var(--border); background: var(--hover); }
544a170ead2catagen2026-10-20 11:47 UTC471
  .actions button:disabled { opacity: 0.4; cursor: default; }
544a170ead2catagen2026-10-20 11:47 UTC472
  .emote { width: 1.3em; height: 1.3em; object-fit: contain; vertical-align: middle; }
544a170ead2catagen2026-10-20 11:47 UTC473
  .picker-pop { position: fixed; z-index: 60; width: 320px; max-width: calc(100vw - 16px); }
973f8fbdaf80atagen2026-09-28 09:10 UTC474
</style>