我正在使用此卡在不同的多媒体遥控器(其中四个)之间切换。
我已经有一个问题已经有一段时间了,并决定今天解决这个问题。请注意,最后一行按钮的阴影似乎是如何切断的。
起初,我以为有一些分隔线或边界,但是几项检查什么也没透露。然后,我开始使用卡模型,边距和填充物,然后注意到实际上是其他3个遥控器(一组按钮)被覆盖和隐藏。分配时,我可以很清楚地看到这一点。100px到底部边缘或填充。无论我选择哪个输入,其他3组总是会导致同一问题。
屏幕截图中的按钮的顶行是设置选择器的原因(未包含在下面的配置中)。
我可以通过插入幻影行来解决这个问题。微弱的灰色线仍然显示出来,但至少阴影没有被切断。
在论坛或卡的问题跟踪器上,我找不到与此相关的内容。我还认为它与垂直堆栈卡有关,但也找不到任何东西。我通过在DOM树的各个地方编辑和添加样式来尝试各种事情。
我是唯一看过这个的人吗?我还有什么可以尝试的吗?
这是我的卡配置:
- 类型:自定义:State-Switch Entity:input_select.selected_remote状态:电视:类型:垂直堆栈卡片: - 类型:Horizontal-stack cards: - type:type:custom:custom:button-card entity:script.samssung_tv_power size:45%样式:45%样式:ICON: - 颜色:rgb(255,0,0)show_name:false tap_action:操作:呼叫服务效果:script.turn_on service_data:entity_id:entity_id:script.samssung_tv_power-类型 - 类型 - entity -button entity:script.sams.samssung_tv_hdmiishow_name:false tap_action:操作:呼叫 - 服务服务:脚本。entity_id:script.samsung_tv_picture_mode-类型:水平堆栈卡片: - 类型:custom:custom:button-card entity:script.samssung_tv_hdmi2 expact_ratio:3.2 show_name:show_name:false Icon:fresse Icon:mdi:mdi:apple tap_action:actair tap_action:action:action:call-service:call-service service:script.turn_on_on_ternew_on_terne_on_datadaadata,:entity_id:script.samsung_tv_hdmi2- typE:自定义:按钮卡实体:script.samssung_tv_hdmi1 expact_ratio:3.2 show_name:false Icon:mdi:set-top-box tap_action:action:call-service服务:call-service服务:script.turn_on service_data:entity_id:entity_id:script.sams.samssung_tv_hdmi#黑客,因为状态开关卡“流血”底部的下一个设置试图用卡模型改进这一点,这似乎无助于#插入幻影行仍然使它看起来像是一个微弱的分隔线#,但至少至少是最后一个按钮行的阴影未遮盖##此选择器重复此hack - 类型:水平堆栈卡片: - 类型:自定义:button-card color_type:空白卡音频:类型:垂直堆栈卡片: - 类型:水平堆栈卡片: - 类型:自定义:按钮卡实体:script.hk_3380_power_on expact_ratio:3.2 show_name:false样式:false样式: - 颜色:color:rgb(255,0,0,0)tap_action:call-service:call-service:call-service haptic:light:light:light:轻:服务:script.turn_on service_data:entity_id:script.hk_3380_power_on-power_on-类型:自定义:button -card entity:script.hk_3380_power_off aspect_ratio: 3.2 show_name: false tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.hk_3380_power_off - type: horizontal-stack cards: - type: custom:button-card entity: script.hk_3380_vid1show_name:错误大小:45%样式:网格: - 位置:相对custom_fields: - source: - 位置:绝对 - 左:80% - 顶部:60% - 高度:20px-宽度:20px custom_fields:source> source> [[[return return> [[[return return] `` ]]] tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.hk_3380_vid1 - type: custom:button-card entity: script.hk_3380_vid2 show_name: false size: 45% tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.hk_3380_vid2 styles: grid: - position: relative custom_fields: source: - position: absolute - left: 80% - top: 60% - height: 20px - width: 20px custom_fields: source: > [[[ return `` ]]] - type: entity-button entity: script.hk_3380_dimmer show_name: false size: 45% tap_action: action: call-service service: script.turn_on service_data: entity_id: script.hk_3380_dimmer - type: horizontal-stack cards: - type: custom:button-card entity: script.hk_3380_vol_down show_name: false tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.hk_3380_vol_down hold_action: repeat: 200 action: call-service haptic: selection service: script.turn_on service_data: entity_id: script.hk_3380_vol_down double_tap_action: action: call-service haptic: medium service: script.turn_on service_data: entity_id: script.hk_3380_vol_down_minus_5 - type: custom:button-card entity: script.hk_3380_vol_up show_name: false tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.hk_3380_vol_up hold_action: repeat: 200 action: call-service haptic: selection service: script.turn_on service_data: entity_id: script.hk_3380_vol_up double_tap_action: action: call-service haptic: medium service: script.turn_on service_data: entity_id: script.hk_3380_vol_up_plus_5 - type: custom:button-card entity: script.hk_3380_mute show_name: false styles: icon: - color: rgb(255, 0, 0) tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.hk_3380_mute # this is a hack - type: horizontal-stack cards: - type: custom:button-card color_type: blank-card "Apple TV": type: vertical-stack cards: - type: horizontal-stack cards: - type: custom:button-card entity: script.apple_tv_menu aspect_ratio: 3.2 show_name: false tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.apple_tv_menu - type: custom:button-card entity: script.apple_tv_home aspect_ratio: 3.2 show_name: false tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.apple_tv_home double_tap_action: action: call-service haptic: light service: script.turn_on service_data: entity_id: script.apple_tv_home_double_press hold_action: action: call-service haptic: medium service: remote.send_command service_data: entity_id: remote.living_room command: home_hold - type: horizontal-stack cards: - type: custom:button-card color_type: blank-card - type: entity-button entity: script.apple_tv_up show_name: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.apple_tv_up - type: custom:button-card color_type: blank-card - type: horizontal-stack cards: - type: entity-button entity: script.apple_tv_left show_name: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.apple_tv_left - type: entity-button entity: script.apple_tv_ok show_name: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.apple_tv_ok - type: entity-button entity: script.apple_tv_right show_name: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.apple_tv_right - type: horizontal-stack cards: - type: custom:button-card color_type: blank-card - type: entity-button entity: script.apple_tv_down show_name: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.apple_tv_down - type: custom:button-card color_type: blank-card - type: horizontal-stack cards: - type: entity-button entity: script.apple_tv_skip_backward show_name: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.apple_tv_skip_backward - type: entity-button entity: script.apple_tv_play_pause show_name: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.apple_tv_play_pause - type: entity-button entity: script.apple_tv_skip_forward show_name: false tap_action: action: call-service service: script.turn_on service_data: entity_id: script.apple_tv_skip_forward # this is a hack - type: horizontal-stack cards: - type: custom:button-card color_type: blank-card