style: format via prettier

This commit is contained in:
2026-01-25 04:25:23 -05:00
parent 2d01e726a9
commit 33dce1ef17
4 changed files with 7 additions and 9 deletions
@@ -66,7 +66,7 @@
<svelte:window on:click={handleClickOutside} /> <svelte:window on:click={handleClickOutside} />
<div bind:this={dropdownElement} class="relative mb-2 w-full" class:dropdown-sm={variant === 'sm'}> <div bind:this={dropdownElement} class="relative mb-2 w-full" class:dropdown-sm={variant === 'sm'}>
<button <button
type="button" type="button"
on:click={toggleDropdown} on:click={toggleDropdown}
@@ -32,7 +32,7 @@
menuOpen = false; menuOpen = false;
} }
} }
onMount(() => { onMount(() => {
document.addEventListener('click', handleClickOutside); document.addEventListener('click', handleClickOutside);
return () => { return () => {
@@ -96,9 +96,9 @@
aria-expanded={menuOpen} aria-expanded={menuOpen}
> >
{#if menuOpen} {#if menuOpen}
<X class="h-6 w-6 text-white pointer-events-none" /> <X class="pointer-events-none h-6 w-6 text-white" />
{:else} {:else}
<Menu class="h-6 w-6 text-white pointer-events-none" /> <Menu class="pointer-events-none h-6 w-6 text-white" />
{/if} {/if}
</button> </button>
</div> </div>
+2 -4
View File
@@ -108,8 +108,6 @@
label: syntaxes[lang]?.name ?? lang.charAt(0).toUpperCase() + lang.slice(1) label: syntaxes[lang]?.name ?? lang.charAt(0).toUpperCase() + lang.slice(1)
})) ?? []; })) ?? [];
const visibilityOptions = const visibilityOptions =
data.options?.visibilities?.map((visibility: { value: number; displayName: string }) => ({ data.options?.visibilities?.map((visibility: { value: number; displayName: string }) => ({
value: visibility.value, value: visibility.value,
@@ -375,7 +373,7 @@
class="monospace mb-2 flex h-fit min-h-12 items-center justify-between {selectedSyntax === class="monospace mb-2 flex h-fit min-h-12 items-center justify-between {selectedSyntax ===
'markdown' 'markdown'
? 'ml-auto w-[calc(100%-150px)] rounded-br' ? 'ml-auto w-[calc(100%-150px)] rounded-br'
: 'w-full rounded-b'} border border-neutral-700 bg-neutral-800 p-1 pr-2 pl-2 text-sm text-neutral-400 md:min-h-8 md:h-8" : 'w-full rounded-b'} border border-neutral-700 bg-neutral-800 p-1 pr-2 pl-2 text-sm text-neutral-400 md:h-8 md:min-h-8"
> >
<div class="flex flex-col md:flex-row md:gap-2"> <div class="flex flex-col md:flex-row md:gap-2">
<span> <span>
@@ -416,7 +414,7 @@
/> />
</div> </div>
{#if selectedVisibility === 2} {#if selectedVisibility === 2}
<div class="flex w-full mb-2"> <div class="mb-2 flex w-full">
<input <input
type={passwordVisible ? 'text' : 'password'} type={passwordVisible ? 'text' : 'password'}
placeholder="Password for private paste" placeholder="Password for private paste"
@@ -73,7 +73,7 @@
value: lang, value: lang,
label: syntaxes[lang]?.name ?? lang.charAt(0).toUpperCase() + lang.slice(1) label: syntaxes[lang]?.name ?? lang.charAt(0).toUpperCase() + lang.slice(1)
})) ?? []; })) ?? [];
const visibilityOptions = const visibilityOptions =
data.options?.visibilities?.map((visibility: { value: number; displayName: string }) => ({ data.options?.visibilities?.map((visibility: { value: number; displayName: string }) => ({
value: visibility.value, value: visibility.value,