Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

background.editor.styles 没有跟随对应的图片一起改变。 #476

Open
shen-lan opened this issue Oct 24, 2024 · 3 comments
Open
Labels

Comments

@shen-lan
Copy link

image

  "background.editor": {
    "useFront": true,
    "style": {},
    "styles": [
      {
        "background-size": "500px 500px",
        "opacity": 0.3,
        "background-position": "110% 100%"
      },
      {
        "background-size": "500px 480px",
        "opacity": 0.3,
        "background-position": "100% 100%" 
      },
      {
        "background-size": "288px 288px",
        "opacity": 0.3,
        "background-position": "100% 100%"
      },
      {
        "background-size": "166px 303px",
        "opacity": 0.3,
        "background-position": "100% 100%"
      }
    ],
    "images": [
      "https://user-images.githubusercontent.com/24371189/47023104-85336080-d191-11e8-957f-b4ac3f8a24c1.png",
      "https://user-images.githubusercontent.com/18376480/55394572-30827700-5572-11e9-9435-2cc501eb53bb.png",
      "https://upload-bbs.miyoushe.com/upload/2023/02/24/196231062/8540249f2c0dd72f34c8236925ef45bc_3880538836005347690.png",
      "https://user-images.githubusercontent.com/9987486/40583670-d6478c9e-61c5-11e8-9551-6b55eacc7b8d.png"
    ],
    "interval": 5,
    "random": false
  }

styles 数组里对应的样式没生效

@shen-lan shen-lan added the bug label Oct 24, 2024
@shen-lan
Copy link
Author

后面的统统走的是第一个style的设置项

@shen-lan
Copy link
Author

截止今天,用的最新版。

@shalldie
Copy link
Owner

确实,intervalrandom 只是针对的 images,需要把 styles 一起对应上。
目前的 styles 仍然保持原有顺序。

会在下一个小版本修复。

@shalldie shalldie changed the title 背景样式没生效。 background.editor.styles 没有跟随对应的图片一起改变。 Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants