From 221c5d2d790c8df1560724bdbc3d3af89b79181a Mon Sep 17 00:00:00 2001 From: MrBearPresident Date: Thu, 12 Dec 2024 15:42:02 +0100 Subject: [PATCH 1/2] Fix Sub-button config breaking when Changing the config. --- src/editor/bubble-card-editor.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/editor/bubble-card-editor.ts b/src/editor/bubble-card-editor.ts index c092f72c..fad94ae8 100644 --- a/src/editor/bubble-card-editor.ts +++ b/src/editor/bubble-card-editor.ts @@ -2084,7 +2084,6 @@ export function createBubbleCardEditor() { let arrayCopy = [...this._config[array]]; arrayCopy[index] = arrayCopy[index] || {}; arrayCopy[index] = { ...arrayCopy[index], ...value }; - arrayCopy[index] = { ...arrayCopy[index].visibility, ...value }; this._config[array] = arrayCopy; fireEvent(this, "config-changed", { config: this._config }); this.requestUpdate(); From 3e422ae1db1e8e26d4c418852cd01d7df6547544 Mon Sep 17 00:00:00 2001 From: MrBearPresident Date: Thu, 12 Dec 2024 15:42:39 +0100 Subject: [PATCH 2/2] Fix error in border radius for media-player --- src/cards/media-player/styles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cards/media-player/styles.ts b/src/cards/media-player/styles.ts index bdc77b7d..4e6394fa 100644 --- a/src/cards/media-player/styles.ts +++ b/src/cards/media-player/styles.ts @@ -19,7 +19,7 @@ export default ` height: 50px; background-color: var(--bubble-media-player-main-background-color, var(--bubble-main-background-color, var(--background-color-2, var(--secondary-background-color)))); touch-action: pan-y; - border-radius: inherit; + border-radius: var(--bubble-media-player-border-radius, var(--bubble-border-radius, 32px)); box-shadow: var(--bubble-media-player-box-shadow, var(--bubble-box-shadow, none)); } @@ -236,7 +236,7 @@ export default ` position: absolute; height: 100%; width: 100%; - border-radius: var(--bubble-media-player-border-radius, var(--bubble-border-radius, 32px)); + border-radius: inherit; overflow: hidden; }