image cover is working nicer now

This commit is contained in:
2026-01-31 12:23:21 +13:00
parent bb69a6c5d6
commit 3c8d067a08

View File

@@ -14,14 +14,14 @@
</script> </script>
<div> <div class="mb-4 w-full">
{#if image} {#if image}
<button class="h-30 w-full rounded-2xl hover:text-white/30" onclick={()=>{fileinput.click();}}> <button class="h-90 w-full rounded-2xl hover:text-white/30 block" onclick={()=>{fileinput.click();}}>
<img class="avatar rounded-2xl hover:brightness-50 transition-opacity" src="{image}" alt="d" /> <img class="avatar rounded-2xl hover:brightness-50 transition-opacity w-full h-full object-cover" src="{image}" alt="d" />
</button> </button>
{:else} {:else}
<button class="text-center bg-white/30 h-30 w-full rounded-2xl" onclick={()=>{fileinput.click();}}> <button class="text-center bg-white/30 h-90 w-full rounded-2xl block" onclick={()=>{fileinput.click();}}>
Select Image Select Image
</button> </button>
{/if} {/if}