style(frontend): apply ultracite 7.12 formatting and lint rules

This commit is contained in:
hh committed 2026-09-19 00:21:07 +02:00
1 parent fc4758aa0b
commit c8e5cff871
109 files changed
+845 -817

No files matched your search

+12 -11
View File
@@ -88,7 +88,8 @@
}
async function poll() {
for (let i = 0; i < POLL_TRIES; i++) {
for (let i = 0; i < POLL_TRIES; i += 1) {
// biome-ignore lint/performance/noAwaitInLoops: polling waits between tries on purpose
await delay(POLL_DELAY);
const next = await loadInlineMedia(message.chat_id, message.message_id);
if (next.state === "ready") {
@@ -149,47 +150,47 @@
<div class="media-skeleton"><Spinner /></div>
{:else if ready && kind === "voice"}
<VoiceMessage
url={ready.url}
transcript={ready.transcript}
chatId={message.chat_id}
messageId={message.message_id}
{own}
transcript={ready.transcript}
url={ready.url}
/>
{:else if ready && kind === "video_note"}
<VideoNote url={ready.url} transcript={ready.transcript} />
<VideoNote transcript={ready.transcript} url={ready.url} />
{:else if ready && kind === "audio"}
<AudioFile url={ready.url} title={fileName} {own} />
<AudioFile {own} title={fileName} url={ready.url} />
{:else if ready && isImage}
<button class="media-thumb" onclick={onopen} type="button">
<img src={ready.url} alt="attachment">
<img alt="attachment" src={ready.url}>
</button>
{:else if ready && isStaticSticker}
<button class="media-sticker" onclick={onopen} type="button">
<img src={ready.url} alt="sticker">
<img alt="sticker" src={ready.url}>
</button>
{:else if ready && isVideoSticker}
<video
class="media-sticker-video"
src={ready.url}
autoplay
class="media-sticker-video"
loop
muted
playsinline
src={ready.url}
></video>
{:else if ready && isTgsSticker}
<TgsSticker url={ready.url} />
{:else if ready && isAnimation}
<button class="media-thumb" onclick={onopen} type="button">
<video src={ready.url} autoplay loop muted playsinline></video>
<video autoplay loop muted playsinline src={ready.url}></video>
<span class="gif-badge">GIF</span>
</button>
{:else if ready && isThumbVideo}
<button class="media-thumb" onclick={onopen} type="button">
<video
src={ready.url}
muted
playsinline
preload="metadata"
src={ready.url}
use:poster
></video>
<span class="play"><Icon name="large-play" size="2.5rem" /></span>