chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-03-25 16:43:06 -05:00
parent 05252e19b5
commit 350d52f515
73 changed files with 766 additions and 55 deletions
+2 -1
View File
@@ -74,7 +74,8 @@
>
<div
class=" w-full flex items-center justify-between gap-2 {attributes?.done &&
attributes?.done !== 'true' && !messageDone
attributes?.done !== 'true' &&
!messageDone
? 'shimmer'
: ''}
"
+2 -10
View File
@@ -118,17 +118,9 @@
{#if open}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- Outer wrapper: positioned flush with trigger, invisible padding bridges the gap -->
<div
use:portal
bind:this={contentEl}
on:mouseleave={handleContentMouseLeave}
>
<div use:portal bind:this={contentEl} on:mouseleave={handleContentMouseLeave}>
<!-- Inner content: visual styles and transition -->
<div
class={contentClass}
style="max-width: {maxWidth}px;"
transition:flyAndScale
>
<div class={contentClass} style="max-width: {maxWidth}px;" transition:flyAndScale>
<slot />
</div>
</div>
@@ -452,10 +452,7 @@
// Escape HTML entities in the line FIRST so we don't corrupt
// user text that happens to contain < or >, then re-inject
// the mention spans.
const escaped = line
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
const escaped = line.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
// Now replace the escaped mention patterns back into real spans
const withMentions = escaped.replace(
/&lt;([@#$])([\w.\-:/]+)(?:\|([^&]*?))?&gt;/g,