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

The card going out of screen on Android #2

Open
adorobis opened this issue Feb 1, 2021 · 11 comments
Open

The card going out of screen on Android #2

adorobis opened this issue Feb 1, 2021 · 11 comments

Comments

@adorobis
Copy link

adorobis commented Feb 1, 2021

This is excellent work! Just installed it on my HA. Now as it is almost perfect, on my android phone the left side of the card is slightly outside of the screen (Samsung Galaxy S8), please check the screenshot.
image

@mweimerskirch
Copy link
Owner

Thank you for reporting this. I'll work on making the card responsive later this week.

@adorobis
Copy link
Author

Any news on that? Also in Chrome on PC depending on window width it is going out of view:
image

@PimDoos
Copy link

PimDoos commented Apr 30, 2022

Same issue on desktop, on certain aspect ratios the outside temperatures are going off screen:
image

Any updates on this?

@zanac
Copy link

zanac commented Jun 23, 2023

Workaround: add card-mod and use:
card_mod:
style: |
ha-card {
padding-left: 50px;
}

@adorobis
Copy link
Author

Good starting point but now it sticks out to the right. Is there a style element to scale it down?
image

@zanac
Copy link

zanac commented Jun 24, 2023

Good starting point but now it sticks out to the right. Is there a style element to scale it down? image

just use padding-right ;)
card_mod:
style: |
ha-card {
padding-left: 50px;
padding-right: 50px;
}

@adorobis
Copy link
Author

Nope, already tried. The house image and other elements don't scale

@zanac
Copy link

zanac commented Jun 24, 2023

Nope, already tried. The house image and other elements don't scale

maybe you wrong syntax, i use it and it seems works.

@adorobis
Copy link
Author

adorobis commented Jun 24, 2023

Try to make the browser window smaller and most likely you'll see what I see.

card_mod:
  style: |
    ha-card{
      padding-left: 50px;
      padding-right: 50px;

    }

image

@zanac
Copy link

zanac commented Jun 24, 2023

try to force also width at 75%.... here you are syntax
card_mod:
style: |
ha-card {
padding-left: 50px;
padding-right: 50px;
width: 75%;
}

@adorobis
Copy link
Author

That makes the whole card smaller and the content is still not scaled down...

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

4 participants