-
Notifications
You must be signed in to change notification settings - Fork 169
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
weather-forecast-card class breaks when compressed horizontally #386
Comments
This depends on a particular class. |
This comment was marked as outdated.
This comment was marked as outdated.
Interestingly, I just validated that it does not happen if the CSS is applied directly to the card, instead of the theme file, as so: type: weather-forecast
entity: weather.home
forecast_type: daily
card_mod:
style: |
ha-card {
background: black !important;
text-transform: uppercase;
border-radius: 0px !important;
border-left: 35.5px solid var(--lcars-card-mid-left-color);
padding-left: 6px !important;
} |
Then may be your theme file is wrong. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Is it also defined in this theme file? |
This comment was marked as outdated.
This comment was marked as outdated.
Then I would suggest you to test with a MINIMAL theme which only contains:
if you still see the issue - then post this MINIMAL theme here to allow users to reproduce the issue. |
Hid my previous comments as they are no longer relevant to discussion or the current state of the issue and examples. |
My Home Assistant version: 2024.7.1
My lovelace configuration method (GUI or yaml): Either.
What I am doing:
Applying a class from the theme file to the weather-forecast-card.
What I expected to happen:
Class should apply at all viewport sizes.
What happened instead:
This is reported by many users of my theme, HA-LCARS, and I have confirmed the behavior. Theme classes applied to the weather-forecast-card do not work in mobile view, or on desktop view where there is sufficient horizontal compression of the view. For example, in a dashboard with 3-4 columns, it seems that the class disappears when the viewport is at <=1412px wide, and less than that with fewer columns. I suspect the state of the side bar also influences this.
Minimal steps to reproduce:
Apply a class to the weather-forecast-card, and then reduce the size of the window/viewport. Eventually, you will see the styling of the class disappears.
Error messages from the browser console:
None.
Untitled.mov
By putting an X in the boxes ([]) below, I indicate that I:
Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
Have made sure I am using the latest version of the plugin.
Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
The text was updated successfully, but these errors were encountered: