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

Card title and description #150

Closed
gmartenscb opened this issue Jun 21, 2024 · 3 comments
Closed

Card title and description #150

gmartenscb opened this issue Jun 21, 2024 · 3 comments

Comments

@gmartenscb
Copy link

Hello and good morning,

I would like to suggest to swap the meaning of the title and description.
As to me, I would have expected the title to be on top, bigger, and in a more prolific fond.

image

@shannonhochkins
Copy link
Owner

This is something that's bothered me too - There's multiple different layouts with this card, however I'll see if I can make some more sense of it - it is intentionally smaller in font-size for longer entity names, however you're probably right it may make more sense to increase it slightly regardless and let the user control the size if need be - There will be a pretty large update coming this weekend:

#149

@gmartenscb
Copy link
Author

I would suggest then having a text-wrap: nowrap with ellipsis and a tooltip, so longer names can still be seen.
And then still allow a custom title to be passed in.

But if you look at the sample above, you don't expect the title to be: "Last restart: 8 hours ago".
You would expect the title (at least semantically speaking) to be: Restart HA.

I understand that this will need some work, and indeed after that PR, also meaning it will be a breaking change.

@shannonhochkins
Copy link
Owner

I agree with you, and it'll be in the next release!

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

2 participants