impr: use native forms instead of submit events
This commit is contained in:
1 parent
3ebb46e37d
commit
4771d343e6
6 files changed
+27
-22
No files matched your search
@@ -186,7 +186,7 @@
|
||||
/>
|
||||
{/if}
|
||||
{#if actions}
|
||||
<PostActions on:hide {post} style="grid-area: actions;" {view} />
|
||||
<PostActions on:hide bind:post style="grid-area: actions;" {view} />
|
||||
{:else if view == 'compact'}
|
||||
<div class="flex flex-row items-center gap-2 text-sm">
|
||||
<Badge>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
onclick={() => goto(pin.url)}
|
||||
alignment="center"
|
||||
selected={`${$page.url.pathname}${$page.url.search}` == pin.url}
|
||||
on:contextmenu={(e) => {
|
||||
oncontextmenu={(e) => {
|
||||
e.preventDefault()
|
||||
settings.dock.pins = settings.dock.pins.toSpliced(
|
||||
settings.dock.pins.findLastIndex((p) => pin.url == p.url),
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
alignment="left"
|
||||
{...rest}
|
||||
{href}
|
||||
onclick
|
||||
on:contextmenu
|
||||
class="font-normal block !origin-left border border-transparent {!selected
|
||||
? 'text-slate-600 dark:text-zinc-400'
|
||||
: ''} {clazz}"
|
||||
|
||||
Reference in new issue
Block a user