nielsfaber / alarmo-card

Home Assistant card for controlling the Alarmo component
98 stars 18 forks source link

Changing the button "Arm/Disarm" position?! #24

Closed pickonedev closed 2 years ago

pickonedev commented 2 years ago

Checklist

Proposal

[clear description of what you want to see changed or added] There is any way to change the "ARM/DISARM" button position?

Additional info

[some example of how the new functionality should look like] I would like to put the button "ARM/DISARM" to the left of button "0" (zero). In this way, I will have a more compact design

pickonedev commented 2 years ago

I done this through CSS, but it will be great if there is an "native" option in the card settings. Maybe the css will be broken after updates

#armActions{position:absolute;margin-top:243px;margin-left:71px;width:100px} alarmo-button{width:100px !important} I am using Alamo in order to turn on/off my computer. This is how it is looking after I changed the button position.

Untitled

nielsfaber commented 2 years ago

I cannot satisfy this request since there are multiple arming actions possible:

They cannot be replaced by a single button.

pickonedev commented 2 years ago

It's ok... I managed to move the button through css. Thank you!

pickonedev commented 2 years ago

@nielsfaber At least, there is any way to change the "Code" text position to middle? The "Code" text inside the field where you add the code. It is strange to have the text in left, but the asterisks in the middle...

I tried with CSS but it is not working...

nielsfaber commented 2 years ago

@pickonedev As far as I know this is not possible. The textfield which is used in the card is an element defined by HA, and uses the mwc textfield component. I don't see any options to control the position of the placeholder text.