custom_components/bahmcloud_store/panel/panel.js aktualisiert

This commit is contained in:
2026-01-15 07:47:37 +00:00
parent c490c7856c
commit d04bf2a3f1

View File

@@ -93,7 +93,11 @@ class BahmcloudStorePanel extends HTMLElement {
<style> <style>
:host { :host {
display: block; display: block;
--bcs-accent: #1E88E5; /* Bahmcloud Blue (v1 default) */ /* Do NOT force viewport height on mobile.
Let Home Assistant handle layout (header/sidebar). */
height: auto;
min-height: 100%;
--bcs-accent: #1E88E5; /* Bahmcloud Blue */
} }
.wrap { .wrap {
@@ -278,7 +282,6 @@ class BahmcloudStorePanel extends HTMLElement {
const content = root.getElementById("content"); const content = root.getElementById("content");
const err = root.getElementById("error"); const err = root.getElementById("error");
// Subtitle version (no hardcoding)
const subtitle = root.getElementById("subtitle"); const subtitle = root.getElementById("subtitle");
const v = this._data?.version ? String(this._data.version) : null; const v = this._data?.version ? String(this._data.version) : null;
subtitle.textContent = v ? `BCS ${v}` : "BCS — loading…"; subtitle.textContent = v ? `BCS ${v}` : "BCS — loading…";