Skip to content

Commit

Permalink
format and remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LXIF committed Nov 21, 2024
1 parent 050279a commit c20b5ae
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/frontend/src/flows/dappsExplorer/teaser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ const marqueeList = (dapps: KnownDapp[]): TemplateResult => {
>
${rows.map((rowDapps, i) => {
const rowContent = rowDapps.map(
// XXX: it's important not to lazy load the image, otherwise
// images start appearing before they're loaded. This then
// shows an empty space where the image suddenly pops seconds
// later.
({ logoSrc, name }) => html`<div class="c-marquee__item">
<div class="c-marquee__image-container">
<img
Expand All @@ -82,8 +78,8 @@ const marqueeList = (dapps: KnownDapp[]): TemplateResult => {
class="c-marquee__image c-marquee__image--loading"
@load=${(e: Event) => {
const img = e.target as HTMLImageElement;
img.classList.remove('c-marquee__image--loading');
img.classList.add('c-marquee__image--loaded');
img.classList.remove("c-marquee__image--loading");
img.classList.add("c-marquee__image--loaded");
}}
/>
</div>
Expand Down

0 comments on commit c20b5ae

Please sign in to comment.