image cover is working nicer now
This commit is contained in:
@@ -14,14 +14,14 @@
|
||||
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<div class="mb-4 w-full">
|
||||
|
||||
{#if image}
|
||||
<button class="h-30 w-full rounded-2xl hover:text-white/30" onclick={()=>{fileinput.click();}}>
|
||||
<img class="avatar rounded-2xl hover:brightness-50 transition-opacity" src="{image}" alt="d" />
|
||||
<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 w-full h-full object-cover" src="{image}" alt="d" />
|
||||
</button>
|
||||
{: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
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user