1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-14 22:15:13 +00:00

fix: center oidc client images if they are smaller than the box

This commit is contained in:
Elias Schneider
2025-06-14 19:33:40 +02:00
parent 883877adec
commit 946c534b08
3 changed files with 23 additions and 17 deletions

View File

@@ -0,0 +1,10 @@
<script lang="ts">
import { cn } from '$lib/utils/style';
import type { HTMLImgAttributes } from 'svelte/elements';
let props: HTMLImgAttributes & {} = $props();
</script>
<div class={'bg-muted flex items-center justify-center rounded-2xl p-3'}>
<img class={cn('size-24 object-contain', props.class)} {...props} />
</div>