mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
style: format via prettier
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user