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

Display icon only with hidden name #34

Open
kajmaj opened this issue Mar 31, 2022 · 9 comments
Open

Display icon only with hidden name #34

kajmaj opened this issue Mar 31, 2022 · 9 comments
Labels
feature request New feature or request

Comments

@kajmaj
Copy link

kajmaj commented Mar 31, 2022

Hello, would it be possible to hide name but show icon only?

@kajmaj kajmaj added the feature request New feature or request label Mar 31, 2022
@ghost
Copy link

ghost commented May 4, 2022

I would love to see this as well.

tbh, also name without icon

@GeorgeSG
Copy link
Owner

GeorgeSG commented Nov 3, 2022

Hi @kajmaj and @jchhenderson.

This is a very very late response 😅 , but both are possible with the hide option:

# show only icon
- type: custom:time-picker-card
  entity: input_datetime.test_date_time
  layout:
    name: inside
  hide:
    name: true
# show only name
- type: custom:time-picker-card
  entity: input_datetime.test_date_time
  layout:
    name: inside
  hide:
    icon: true

image

@GeorgeSG GeorgeSG closed this as completed Nov 3, 2022
@ghost
Copy link

ghost commented Nov 3, 2022

it doesn't work for me though - no clue why...

- type: custom:time-picker-card
  entity: input_datetime.hive_heating_1_on
  layout:
    name: inside
  hide:
    name: true
- type: custom:time-picker-card
  entity: input_datetime.hive_heating_1_on
  layout:
    name: inside
  hide:
    icon: true

Screenshot 2022-11-03 at 16 27 43

[edit: added both ways]

@GeorgeSG
Copy link
Owner

GeorgeSG commented Nov 3, 2022

Hm, that's strange. I just released Version 1.3.0 that refactors part of that logic. Let me know if this fixes your problem.

@GeorgeSG GeorgeSG reopened this Nov 3, 2022
@ghost
Copy link

ghost commented Nov 3, 2022

1.3.0 makes no difference. I am running HA in docker of that helps at all?

@GeorgeSG
Copy link
Owner

GeorgeSG commented Nov 3, 2022

@jchhenderson I am unable to reproduce this in 1.3.0. Also running HA in docker.

Here are some example configs and screenshots from my test environment:

Screenshot 2022-11-03 at 19 13 35

- type: custom:time-picker-card
  entity: input_datetime.test_date_time
  layout:
    name: inside

Screenshot 2022-11-03 at 19 15 20

- type: custom:time-picker-card
  entity: input_datetime.test_date_time
  layout:
    name: inside
    align_controls: right
  hide:
    icon: true

Screenshot 2022-11-03 at 19 16 07

- type: custom:time-picker-card
  entity: input_datetime.test_date_time
  layout:
    name: inside
  hide:
    icon: true
    name: true

@GeorgeSG
Copy link
Owner

GeorgeSG commented Nov 3, 2022

@jchhenderson there was an issue with 1.3.0 packaging in Github. I just pushed 1.3.1, please try upgrading to that, clearing cache and let me know if that helps :)

@ghost
Copy link

ghost commented Nov 3, 2022

OK, extra information for you - I am using Safari on a Mac.

OK, 1.3.1 codes the icon, but positioning is as if it is still there.
Screenshot 2022-11-03 at 18 23 37

The icon still shows on my iOS devices.

@GeorgeSG
Copy link
Owner

GeorgeSG commented Nov 4, 2022

@jchhenderson for the iOS devices, this is most probably a caching problem.

I've tested this in Safari, and unfortunately I cannot reproduce your issue. I would suggest double checking that you are not using a cached version and trying to set up the card in an isolated view to see if that works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants