remove some alts

This commit is contained in:
Jon Staab
2025-11-13 08:59:32 -08:00
parent 9cae4da9f4
commit 8e2ebd11fc
7 changed files with 10 additions and 14 deletions

View File

@@ -49,7 +49,7 @@
<div class="bg-alt flex max-w-xl flex-col leading-normal"> <div class="bg-alt flex max-w-xl flex-col leading-normal">
{#if preview.image && !hideImage} {#if preview.image && !hideImage}
<img <img
alt="Link preview" alt=""
onerror={onError} onerror={onError}
src={preview.image} src={preview.image}
class="bg-alt max-h-72 rounded-t-box object-contain object-center" /> class="bg-alt max-h-72 rounded-t-box object-contain object-center" />

View File

@@ -19,6 +19,6 @@
<ImageIcon <ImageIcon
{size} {size}
alt=""
class={cx(props.class, "rounded-full")} class={cx(props.class, "rounded-full")}
src={$profile?.picture || UserRounded} src={$profile?.picture || UserRounded} />
alt="Profile picture" />

View File

@@ -41,7 +41,7 @@
</Button> </Button>
<div class="flex gap-2"> <div class="flex gap-2">
<Link external href={pubkeyLink(pubkey)} class="btn btn-neutral"> <Link external href={pubkeyLink(pubkey)} class="btn btn-neutral">
<ImageIcon alt="Open in Coracle" src="/coracle.png" /> <ImageIcon alt="" src="/coracle.png" />
Open in Coracle Open in Coracle
</Link> </Link>
<Button onclick={openChat} class="btn btn-primary"> <Button onclick={openChat} class="btn btn-primary">

View File

@@ -14,8 +14,4 @@
const relay = deriveRelay(url) const relay = deriveRelay(url)
</script> </script>
<ImageIcon <ImageIcon {size} alt="" src={$relay?.icon || RemoteControllerMinimalistic} class={props.class} />
{size}
src={$relay?.icon || RemoteControllerMinimalistic}
alt="Relay image"
class={props.class} />

View File

@@ -117,7 +117,7 @@
{#if imagePreview} {#if imagePreview}
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<span class="text-sm opacity-75">Selected:</span> <span class="text-sm opacity-75">Selected:</span>
<ImageIcon src={imagePreview} alt="Room icon preview" /> <ImageIcon src={imagePreview} alt="" />
</div> </div>
{:else} {:else}
<span class="text-sm opacity-75">No icon selected</span> <span class="text-sm opacity-75">No icon selected</span>
@@ -144,7 +144,7 @@
{#snippet input()} {#snippet input()}
<label class="input input-bordered flex w-full items-center gap-2"> <label class="input input-bordered flex w-full items-center gap-2">
{#if imagePreview} {#if imagePreview}
<ImageIcon src={imagePreview} alt="Room icon preview" /> <ImageIcon src={imagePreview} alt="" />
{:else} {:else}
<Icon icon={Hashtag} /> <Icon icon={Hashtag} />
{/if} {/if}

View File

@@ -16,7 +16,7 @@
</script> </script>
{#if $room.picture} {#if $room.picture}
<ImageIcon src={$room.picture} {size} alt="Room icon" class="rounded-lg" /> <ImageIcon src={$room.picture} {size} alt="" class="rounded-lg" />
{:else} {:else}
<Icon icon={Hashtag} {size} /> <Icon icon={Hashtag} {size} />
{/if} {/if}

View File

@@ -143,7 +143,7 @@
{#if imagePreview} {#if imagePreview}
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<span class="text-sm opacity-75">Selected:</span> <span class="text-sm opacity-75">Selected:</span>
<ImageIcon src={imagePreview} alt="Room icon preview" /> <ImageIcon src={imagePreview} alt="" />
</div> </div>
{:else} {:else}
<span class="text-sm opacity-75">No icon selected</span> <span class="text-sm opacity-75">No icon selected</span>
@@ -170,7 +170,7 @@
{#snippet input()} {#snippet input()}
<label class="input input-bordered flex w-full items-center gap-2"> <label class="input input-bordered flex w-full items-center gap-2">
{#if imagePreview} {#if imagePreview}
<ImageIcon src={imagePreview} alt="Room icon preview" /> <ImageIcon src={imagePreview} alt="" />
{:else} {:else}
<Icon icon={SettingsMinimalistic} /> <Icon icon={SettingsMinimalistic} />
{/if} {/if}