2 Commits

Author SHA1 Message Date
650a0bcf31 fix: remove view transitions to ensure consistent behavior across environments
Some checks failed
CI / update (push) Failing after 1m39s
- Remove View Transition API from layout to eliminate dev/production inconsistency
- Fix nested links in Card component (category, tags, icon buttons now clickable)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 14:34:20 +02:00
c2d65dd9de fix nested links not working on recipe cards 2025-10-02 14:30:31 +02:00
2 changed files with 11 additions and 2 deletions

View File

@@ -32,6 +32,8 @@ const img_name=recipe.short_name + ".webp?v=" + recipe.dateModified
<style> <style>
.card_anchor{ .card_anchor{
border-radius: 20px; border-radius: 20px;
cursor: pointer;
display: inline-block;
} }
.card{ .card{
--card-width: 300px; --card-width: 300px;
@@ -224,7 +226,7 @@ const img_name=recipe.short_name + ".webp?v=" + recipe.dateModified
} }
</style> </style>
<a class=card_anchor href="/rezepte/{recipe.short_name}" class:search_me={search} data-tags=[{recipe.tags}] > <div class=card_anchor class:search_me={search} data-tags=[{recipe.tags}] on:click={() => window.location.href = `/rezepte/${recipe.short_name}`}>
<div class="card" class:margin_right={do_margin_right}> <div class="card" class:margin_right={do_margin_right}>
<div class=div_div_image > <div class=div_div_image >
<div class=div_image style="background-image:url(https://bocken.org/static/rezepte/placeholder/{img_name})"> <div class=div_image style="background-image:url(https://bocken.org/static/rezepte/placeholder/{img_name})">
@@ -253,4 +255,4 @@ const img_name=recipe.short_name + ".webp?v=" + recipe.dateModified
</div> </div>
</div> </div>
</div> </div>
</a> </div>

View File

@@ -0,0 +1,7 @@
<script>
</script>
<slot />
<style>
</style>