Skip to content

Commit

Permalink
Fix Error on published Custom Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
AguzzTN54 committed Oct 29, 2024
1 parent 970fdeb commit b1c4bab
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/routes/_allbanners/_item-banner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
use:lazyLoad={imageCDN(images)}
data-placeholder={$assets['placeholder-general.webp']}
alt={character}
crossorigin="anonymous"
loading="lazy"
/>
{:else}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/_custom-banner/BannerEditor/BannerArt.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<div class="zoomist-container" bind:this={mainArt}>
<div class="zoomist-wrapper">
<div class="zoomist-image">
<img src={artURL} alt="Uploaded Splash Art" crossorigin="anonymous" />
<img src={artURL} alt="Uploaded Splash Art" />
</div>
</div>
</div>
Expand Down
7 changes: 1 addition & 6 deletions src/routes/_custom-banner/ModalDelete.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,7 @@
{/if}

{#if thumbnail}
<img
use:lazyLoad={thumbnail}
alt="Delete this banner"
class="selectedToDelete"
crossorigin="anonymous"
/>
<img use:lazyLoad={thumbnail} alt="Delete this banner" class="selectedToDelete" />
{/if}
</div>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/_custom-banner/ModalInitBanner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
</caption>
{/if}
{#if thumbnail}
<img src={thumbnail} alt="Banner Thumbnail" class="thumb" crossorigin="anonymous" />
<img src={thumbnail} alt="Banner Thumbnail" class="thumb" />
{/if}
</div>
{/if}
Expand Down
3 changes: 2 additions & 1 deletion src/routes/_custom-banner/SplashArtEditor/SplashArt.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
export let weaponType = '';
export let localName = '';
export let hideInfo = false;
export let isCustom = false;
let mainArt;
let clientHeight = 0;
Expand Down Expand Up @@ -171,7 +172,7 @@
<img
src={artURL}
alt={localName || character}
crossorigin="anonymous"
{...!isCustom ? { crossorigin: 'anonymous' } : {}}
on:load={() => movePos(position?.splashArt || {})}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/_gachainfo/details/_promotional-v1.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<i class="gi-{character.vision} {character.vision} icon-gradient filter-drop" />
{#if $isCustomBanner}
{@const { images = {}, character = '' } = $customData || {}}
<img use:lazyLoad={images?.faceURL} alt={character} crossorigin="anonymous" />
<img use:lazyLoad={images?.faceURL} alt={character} />
{:else}
<img
use:lazyLoad={$assets[`face/${character.name}`]}
Expand Down
1 change: 0 additions & 1 deletion src/routes/_gachainfo/details/_promotional-v2.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
use:lazyLoad={images?.faceURL}
data-placeholder={$assets['face-placeholder.webp']}
alt={name}
crossorigin="anonymous"
/>
{:else}
<img
Expand Down
1 change: 1 addition & 0 deletions src/routes/_inventory/_inventory-detail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
artURL={getArtURL(outfitName)}
position={offset}
preview
isCustom={custom}
{weaponType}
{localName}
{vision}
Expand Down
1 change: 0 additions & 1 deletion src/routes/_inventory/_inventory-item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
use:lazyLoad={images?.faceURL}
data-placeholder={$assets['placeholder-face.webp']}
alt={localName}
crossorigin="anonymous"
/>
<span class="gi-{vision} {vision} icon-gradient element" />
{:else if type === 'character'}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/_wish/wish-result/_result-list-item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{@const { artURL } = status === 'owned' ? images : hostedImages}
{@const { wishCard = {} } = artPosition || {}}
<div class="zoomist-image" style={getCssVarPosition(wishCard, clientHeight, clientWidth)}>
<img src={artURL} alt={name} class="wishpic" crossorigin="anonymous" />
<img src={artURL} alt={name} class="wishpic" />
</div>

<!-- Weapon -->
Expand Down
2 changes: 1 addition & 1 deletion src/routes/_wish/wish-result/_splash-art.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{@const { artURL } = status === 'owned' ? images : hostedImages}
{@const { splashArt = {} } = artPosition || {}}
<div class="zoomist-image" style={pos(splashArt, clientHeight, clientWidth)}>
<img use:lazyLoad={artURL} alt={name} crossorigin="anonymous" />
<img use:lazyLoad={artURL} alt={name} />
</div>

<!-- Weapon -->
Expand Down

0 comments on commit b1c4bab

Please sign in to comment.