Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Wrong background in container #15

Open
2 tasks done
Xlinx64 opened this issue Dec 22, 2020 · 2 comments
Open
2 tasks done

Wrong background in container #15

Xlinx64 opened this issue Dec 22, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@Xlinx64
Copy link
Contributor

Xlinx64 commented Dec 22, 2020

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
0.0.3
Browser and Operating System:
Firefox 84.0, macOS 10.15.7

Description of problem:
Custom dnd view:
Bildschirmfoto 2020-12-22 um 23 09 06
Normal view:
Bildschirmfoto 2020-12-22 um 23 08 57

It seems like the background of the element is differnet. When I disable the background style it works.
I think the dnd view should behave like in a normal view.

@Xlinx64 Xlinx64 added the bug Something isn't working label Dec 22, 2020
@zsarnett
Copy link
Owner

Can you tell me the config you are using to make this background? I am seeing the same when I add a background image on both types of views

@Xlinx64
Copy link
Contributor Author

Xlinx64 commented Dec 25, 2020

I use this configuraton for the background:

This in the config for the views:

background: var(--background-image)

This in my theme:

  background-image: "center / cover no-repeat fixed url('/hacsfiles/themes/ios-themes-custom/homekit-bg.jpg')"
  lovelace-background: var(--background-image)

Here is the image:
https://user-images.githubusercontent.com/14150988/103138957-b6940900-46d7-11eb-9d6a-0d44a4e5aa5b.jpg

It seems like the grid-dnd element also has a background set but this container doesnt fill its parent view. Therefore it places a background above a background.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants