Skip to content

renderGrid gifs positions are not set properly in lit #322

@zizhouW

Description

@zizhouW

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

I am trying to use the renderGrid component inside a lit project.
It seems like all gifs are rendered with

position: absolute;
top: 0px;
left: 0px;

and stacked together as a result. Could it be because of shadow DOM?

Expected behavior 🤔

renderGrid should form a grid to display all gifs fetched

Steps to reproduce 🕹

https://codesandbox.io/s/litelement-typescript-forked-i8nz57

Screenshots or Videos 📹

image

Platform 🌍

  • macOS, Windows, Android
  • Chrome, Firefox, Safari

GIPHY-JS SDK version

@giphy/js-components 5.8.2

TypeScript version

v4.7.4

Additional context 🔦

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions