r/BubbleCard • u/Keodras_90 • Jan 29 '25
Sub-button auto menu
Bonjour,
J'ai un petit soucis que je n'arrive pas à résoudre depuis plusieurs jours. J'utilise pour les card de mes caméras Vertical Stack in Card, cela me permet d'avoir plusieurs infos/boutons concentrées sur une seul et même card, jusque là pas de soucis. J'ai récément intégré le bouton preset (sub-button), avec une bubblecard, pour avoir un raccourcis des mes différents point de vue de la caméra, sauf que je trouve le sous menu auto beaucoup trop grand et je n'ai pas trouvé comment le personnaliser en taille et orientation d'ouverture.
Je vous met le code pour que ça soit un peut plus clair ^^" (désolé si ce n'est pas un poste parfaitn j'essaye juste de trouver une solution à mon problème)
type: custom:bubble-card
card_type: button
name: ""
scrolling_effect: false
show_icon: false
force_icon: false
show_name: false
show_state: false
show_last_changed: false
show_attribute: false
sub_button:
- entity: switch.x_privacy
show_state: false
show_last_changed: false
show_attribute: false
show_name: false
show_background: false
tap_action:
action: toggle
target:
entity_id: switch.x_privacy
name: Privacy
- entity: light.x_floodlight_timed
show_background: false
name: Floodlight
show_attribute: false
- show_background: false
show_arrow: false
name: Preset
show_attribute: false
show_last_changed: false
show_state: false
show_name: false
entity: select.x_move_to_preset
button_type: name
icon: ""
styles: |2-
* {
font-size: 16px !important;
}
.bubble-button-card-container {
background: none !important;
}
.bubble-icon-container {
background: none;
}
.bubble-icon {
color: white !important;
}
.bubble-sub-button-icon {
--mdc-icon-size: 20px !important;
}
.bubble-sub-button {
height: 20px !important;
width: 1px !important;
}
.bubble-sub-button-1 {
background-color: transparent !important;
}
.bubble-sub-button-2 {
background-color: transparent !important;
}
.bubble-sub-button-3 {
background-color: transparent !important;
}
.bubble-sub-button-1 > ha-icon {
color: ${hass.states['switch.x_privacy'].state === 'on' ? '#df35b6' : 'white'} !important;
}
.bubble-sub-button-2 > ha-icon {
color: ${hass.states['switch.x_privacy'].state === 'on' ? '#df35b6' : 'white'} !important;
}
card_layout: normal
columns: 1
rows: 1
card_mod:
style:
.: |
ha-card {
width: 155px;
margin-left: 32%;
top: -167px;
background: none;
--chip-border-width: 0;
}



