chore: format
This commit is contained in:
@@ -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'
|
||||
: ''}
|
||||
"
|
||||
|
||||
@@ -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, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
const escaped = line.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
||||
// Now replace the escaped mention patterns back into real spans
|
||||
const withMentions = escaped.replace(
|
||||
/<([@#$])([\w.\-:/]+)(?:\|([^&]*?))?>/g,
|
||||
|
||||
Reference in New Issue
Block a user