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

noPadding resizes tile after adjusting tile settings #121

Closed
skank01 opened this issue Nov 9, 2021 · 2 comments
Closed

noPadding resizes tile after adjusting tile settings #121

skank01 opened this issue Nov 9, 2021 · 2 comments

Comments

@skank01
Copy link

skank01 commented Nov 9, 2021

I adjusted width and heigth of my tiles ..
As i did my custom button card is doing strange stuff
As you can see here, my second button is normal size but the custom button doesnt fill the tile
[url=https://imgbb.com/][/url]

However i normally add "noPadding: true", but when i do now, the tile size gets bigger?
I have no idea why
[url=https://imgbb.com/][/url]

Any idea why? It seems after changing the style of the homekit button (especialaly width and heigth), the noPadding settings doenst change with it?

Here's my adjusted tile setting
[code]
style: |
:host {
--tile-background: rgb(255, 255, 255);
--tile-icon-size: 40px;
--tile-border-radius: 10px;
--tile-width: 85px;
--tile-height: 85px;
--tile-on-background: #464446;
--tile-name-text-color: #464446;
--tile-on-name-text-color: rgba(255, 255, 255, 1);
--tile-state-text-color: rgba(0, 0, 0, 0.4);
--tile-on-state-text-color: rgba(0, 0, 0, 1);
--tile-state-changed-text-color: rgb(134, 134, 134);
--tile-unavailable-state-text-color: rgba(255, 255, 255, 0,5);
--tile-value-text-color: rgba(255, 0, 0, 1);
--tile-icon-color: #464446;
--tile-on-icon-color: rgba(255, 255, 255, 1);
--tile-width-mobile: 85px;
--tile-height-mobile: 85px;
}
.button-inner .icon {
width:55px;
height:55px;
}
.button-inner .icon ha-icon {
width: 40px;
height:40px;
}
[/code]

@mvanlijden
Copy link

mvanlijden commented Dec 9, 2021

I also found this as an error. But it seems that once you enable the noPadding, any tile width and height override you did on card even the main card level are ignored and you are stuck with the basic 100x100px size

P.S. you images arent visible :)

@DBuit
Copy link
Owner

DBuit commented Dec 15, 2021

This is fixed in https://github.com/DBuit/Homekit-panel-card/releases/tag/0.6.2

@DBuit DBuit closed this as completed Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants