Volle Breite mit Seitenleiste in Gruppen (1.0.1)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 18:42:03 +00:00
parent 5bdfb8a082
commit c2792f6a63
13 changed files with 40 additions and 14 deletions

View file

@ -129,7 +129,7 @@ const shownImages = computed(() => p.images.slice(0, 4));
<!-- Fotos -->
<div v-if="p.images.length" class="ih:mt-3 ih:grid ih:gap-0.5" :class="p.images.length === 1 ? '' : 'ih:grid-cols-2'">
<a v-for="(img, i) in shownImages" :key="img.id" :href="img.url" target="_blank" rel="noopener" class="ih:relative ih:block ih:overflow-hidden ih:bg-muted" :class="p.images.length === 3 && i === 0 ? 'ih:row-span-2' : ''">
<img :src="p.images.length === 1 ? img.url : img.thumb_url" :alt="img.name" loading="lazy" class="ih:w-full ih:object-cover" :class="p.images.length === 1 ? 'ih:max-h-[32rem]' : 'ih:aspect-square ih:h-full'" />
<img :src="p.images.length === 1 ? img.url : img.thumb_url" :alt="img.name" loading="lazy" class="ih:w-full" :class="p.images.length === 1 ? 'ih:max-h-[32rem] ih:object-contain' : 'ih:aspect-square ih:h-full ih:object-cover'" />
<span v-if="i === 3 && p.images.length > 4" class="ih:absolute ih:inset-0 ih:grid ih:place-items-center ih:bg-foreground/55 ih:text-2xl ih:font-semibold ih:text-background">+{{ p.images.length - 4 }}</span>
</a>
</div>

View file

@ -71,9 +71,9 @@ async function submit() {
v-model="body"
:rows="focused || body ? 4 : 1"
maxlength="10000"
:placeholder="`Was möchten Sie mit „${group.name}“ teilen?`"
placeholder="Was möchten Sie teilen?"
aria-label="Beitrag schreiben"
class="ih:min-h-10 ih:flex-1 ih:resize-none ih:rounded-2xl ih:bg-muted ih:px-4 ih:py-2 ih:text-[15px] ih:focus-visible:bg-background ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none"
class="ih:min-h-10 ih:min-w-0 ih:flex-1 ih:resize-none ih:rounded-2xl ih:bg-muted ih:px-4 ih:py-2 ih:text-[15px] ih:focus-visible:bg-background ih:focus-visible:ring-3 ih:focus-visible:ring-ring/30 ih:focus-visible:outline-none"
@focus="focused = true"
@paste="$event.clipboardData?.files?.length && ($event.preventDefault(), add([...$event.clipboardData.files]))"
/>