高度我这是写死的,只是根据实体状态来返回不同高度预设值,实体关闭的时候只有一个开关就低一些,开启时多了控制部件就高些
.bubble-pop-up {
height: ${hass.states['switch.211106241774699_power'].state === "on" ? '420px' : '300px'} !important; /* 设置已知的堆叠高度 */
max-height: 95vh !important; /* 最大高度为,防止超过屏幕高度 */
bottom: 0vh !important;
}
|