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

[Bug]: Buttons scaling on vacuum card #1034

Closed
2 tasks done
maxyvon opened this issue Feb 22, 2023 · 3 comments · Fixed by #1038
Closed
2 tasks done

[Bug]: Buttons scaling on vacuum card #1034

maxyvon opened this issue Feb 22, 2023 · 3 comments · Fixed by #1038
Labels
bug Something isn't working

Comments

@maxyvon
Copy link

maxyvon commented Feb 22, 2023

Requirements

  • I have updated Mushroom to the latest available version
  • I did a search to see if there is a similar issue or if a pull request is open.

Current Behavior

The buttons of the vacuum card do not scale/resize properly when the layout is set to horizontal. (Second card on the screenshot) Other layouts work fine.

Expected Behavior

The vacuum card command buttons should be scaled/resized like the climate card button. (See screenshot)

Steps To Reproduce

  1. Add the vacuum card
  2. Select command buttons
  3. Set layout to horizontal
  4. Scale your browser screen to resize the cards or use your phone
  5. The button won’t scale

Context

YAML state

Environment

- Browser: 
  • iOS: Safari, Homeassistant app
  • Windows: Chrome
- HA Version: 2023.2.5
- Mushroom: 2.5.3

Anything else?

080508AB-33EC-4360-871D-B27CB4BCC579

@maxyvon maxyvon added the bug Something isn't working label Feb 22, 2023
@maxyvon maxyvon changed the title [Bug]: <title> [Bug]: Button scaling on vacuum card Feb 22, 2023
@maxyvon maxyvon changed the title [Bug]: Button scaling on vacuum card [Bug]: Buttons scaling on vacuum card Feb 22, 2023
@piitaya piitaya mentioned this issue Feb 27, 2023
9 tasks
@maxyvon
Copy link
Author

maxyvon commented Mar 7, 2023

I have updated Mushroom to the latest available version. Maybe I wasn't clear enough in my post, but the problem was with the vaccum card.
The four buttons (on the picture below) doesn't scale properly to fit in the available space of the card, like other mushroom cards.
image

@piitaya
Copy link
Owner

piitaya commented Mar 7, 2023

I tried to fix the issue for all cards so it should work for the vacuum.
If you look in your browser console, what Mushroom version do you hav? Also, what browser do you use?

If you look at the screenshot below, it works for me.
CleanShot 2023-03-07 at 22 12 51@2x

type: custom:mushroom-vacuum-card
entity: vacuum.ground_floor_vacuum
layout: horizontal
commands:
  - on_off
  - start_pause
  - stop
  - locate
  - clean_spot
  - return_home
primary_info: none
secondary_info: none

@maxyvon
Copy link
Author

maxyvon commented Mar 7, 2023

Sorry, I didn’t think to look. I cleared my cache and it’s good now! Thanks!

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

Successfully merging a pull request may close this issue.

2 participants