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

Markdown elements mostly only work as header #19

Closed
mijofa opened this issue Jan 3, 2023 · 3 comments
Closed

Markdown elements mostly only work as header #19

mijofa opened this issue Jan 3, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mijofa
Copy link

mijofa commented Jan 3, 2023

Here's a screenshot that shows it better than I can really describe:
HA-lcars-markdown-class-weirdness

Note the border-radius in the top-left of all but the middle one.
It looks like it's coming from the 'ha-markdown.no-header' element, when I unset the border-radius on that element in the browser's inspector, it removes that rounded corner for all of them, including the actual header one, even though it does seem to be set properly on the parent ha-card.header element.
I was struggling to find a solve for this using the inspector, but I'm not well versed in CSS styling.

@thedeedubyah
Copy link

I've found the same issue. A work-around is to manually set the border-radius using card_mod, e.g.

type: markdown
content: your content here
card_mod:
  class: footer
  style: |
    ha-markdown {
       border-radius: 0 0 0 20px !important;
    }

@th3jesta
Copy link
Owner

th3jesta commented Jan 3, 2023

Thanks for the footwork, folks.

I was able to implement some global fixes so that Markdown should look good in all situations. Please try the latest release and let me know if anything looks off. HA-LCARS-1.7.5

@th3jesta th3jesta reopened this Jan 3, 2023
@th3jesta th3jesta self-assigned this Jan 3, 2023
@th3jesta th3jesta added bug Something isn't working Regression Broken by another fix labels Jan 3, 2023
@mijofa
Copy link
Author

mijofa commented Jan 4, 2023

Confirmed that's much better now, thanks for the speedy fix

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

No branches or pull requests

3 participants