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

Rounded corners #137

Closed
lcavalli opened this issue Feb 19, 2022 · 3 comments · May be fixed by #157
Closed

Rounded corners #137

lcavalli opened this issue Feb 19, 2022 · 3 comments · May be fixed by #157

Comments

@lcavalli
Copy link

It would be nice to have the possibility to apply rounded corners to the bar. Not sure it can be achieved with alternative methods, like card-mod.

@lcavalli
Copy link
Author

Looking at this screenshot
image
it is possible, but the sample code presented

entity: sensor.example
positions:
  icon: 'off'
  indicator: inside
  name: outside
type: 'custom:bar-card'
width: 70%
title: 2.0.0 Default Layout
style: |-
  bar-card-value {
    margin-right: auto;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px #0005;
  }

doesn't produce the same result.

@lcavalli
Copy link
Author

Solved, this is the correct style to apply:

style: |-
  bar-card-currentbar, bar-card-backgroundbar {
    border-radius: 4px;
  }

@bcutter
Copy link

bcutter commented Dec 9, 2022

So why did you close this issue? I was running into the same and searching my back off why the example is not working.

You fixed it for you (and I'm thankful for sharing your solution), but the docs at https://github.com/custom-cards/bar-card#200-default-layout-requires-card-mod are still wrong.

So just REOPEN and FIX the docs ⚠

bcutter referenced this issue Dec 9, 2022
border-radius as shown in screen was missing in example code
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

Successfully merging a pull request may close this issue.

2 participants