l3mpire / lemverse

The first-ever coworking metaverse
https://app.lemverse.com
GNU Affero General Public License v3.0
148 stars 40 forks source link

Change dimension pop-in configuration #219

Closed Flowtter closed 1 year ago

Flowtter commented 1 year ago

This pull request allows the user to use a unit other than pixels.

{
  "name": "",
...
  "popInConfiguration": {
    "width": "29.5vw",
    "height": "22.5vw",
    "position": "center",
    "yt": true,
    "className": "wood-style with-arrow fade-in v-centered",
    "offset": {
      "x": 0,
      "y": 0
    }
  },
...
}
Donorhan commented 1 year ago

Thank you!

Donorhan commented 1 year ago

This is not related to your change but I just saw in your example a "yt": true, it is not necessary anymore. From now on the detection of youtube lin, the addition of the mandatory parameters is automatic