Vorschau zeigt immer das ganze Bild, eingepasst mit Rand (1.0.1)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
14aaa16b30
commit
dce39774a2
13 changed files with 17 additions and 17 deletions
|
|
@ -10,10 +10,10 @@ defineProps({
|
|||
|
||||
<template>
|
||||
<article class="ih:group ih:flex ih:flex-col ih:overflow-hidden ih:rounded-lg ih:border ih:bg-card ih:shadow-xs ih:transition-shadow ih:hover:shadow-md">
|
||||
<!-- Kunstwerke nicht beschneiden: ganzes Bild auf ruhigem Grund -->
|
||||
<Link :href="item.url" prefetch class="ih:relative ih:grid ih:aspect-[4/3] ih:place-items-center ih:overflow-hidden ih:bg-muted ih:p-3">
|
||||
<img v-if="item.thumb_url" :src="item.thumb_url" :alt="item.title" loading="lazy" class="ih:max-h-full ih:max-w-full ih:object-contain ih:shadow-sm ih:transition-transform ih:duration-300 ih:group-hover:scale-[1.02]" />
|
||||
<ImageOff v-else class="ih:size-8 ih:text-muted-foreground" :stroke-width="1.5" />
|
||||
<!-- Immer das ganze Bild: in die Fläche eingepasst, mit Rand – nie ein Ausschnitt -->
|
||||
<Link :href="item.url" prefetch class="ih:relative ih:block ih:aspect-[4/3] ih:overflow-hidden ih:bg-muted ih:p-3 ih:pt-9">
|
||||
<img v-if="item.thumb_url" :src="item.thumb_url" :alt="item.title" loading="lazy" class="ih:size-full ih:object-contain ih:transition-transform ih:duration-300 ih:group-hover:scale-[1.02]" />
|
||||
<span v-else class="ih:grid ih:size-full ih:place-items-center"><ImageOff class="ih:size-8 ih:text-muted-foreground" :stroke-width="1.5" /></span>
|
||||
<StatusBadge :lent="item.lent" class="ih:absolute ih:top-2 ih:left-2" />
|
||||
</Link>
|
||||
<div class="ih:flex ih:flex-1 ih:flex-col ih:gap-1 ih:p-3">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue