mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
fix: nested button in inventar list view, uload-server port 3041→3070
- inventar-web: second nested <button> in list view also converted to <div role="button"> to fix Svelte 5 HTML validation - uload-server: port changed from 3041 to 3070 to avoid conflict with Forgejo which also binds port 3041 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
df19d3acc4
commit
b9232438cf
2 changed files with 10 additions and 7 deletions
|
|
@ -268,9 +268,12 @@
|
|||
<!-- List View -->
|
||||
<div class="space-y-2">
|
||||
{#each sortedItems as item (item.id)}
|
||||
<button
|
||||
<div
|
||||
onclick={() => goto(`/items/${item.id}`)}
|
||||
class="group flex w-full items-center gap-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-4 py-3 text-left transition-colors hover:border-[hsl(var(--primary)/0.3)]"
|
||||
onkeydown={(e) => e.key === 'Enter' && goto(`/items/${item.id}`)}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
class="group flex w-full cursor-pointer items-center gap-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-4 py-3 text-left transition-colors hover:border-[hsl(var(--primary)/0.3)]"
|
||||
>
|
||||
<div class="flex-1 min-w-0">
|
||||
<div class="flex items-center gap-2">
|
||||
|
|
@ -308,7 +311,7 @@
|
|||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</button>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue