diff --git a/src/components/ha-alert.ts b/src/components/ha-alert.ts
index 790adb108c10..e01f1cbc7ec2 100644
--- a/src/components/ha-alert.ts
+++ b/src/components/ha-alert.ts
@@ -5,7 +5,7 @@ import {
mdiClose,
mdiInformationOutline,
} from "@mdi/js";
-import { css, html, LitElement } from "lit";
+import { css, html, LitElement, nothing } from "lit";
import { customElement, property } from "lit/decorators";
import { classMap } from "lit/directives/class-map";
import { fireEvent } from "../common/dom/fire_event";
@@ -37,6 +37,8 @@ class HaAlert extends LitElement {
@property({ type: Boolean }) public dismissable = false;
+ @property({ type: Boolean }) public narrow = false;
+
public render() {
return html`
+
- ${this.title ? html`
${this.title}
` : ""}
+ ${this.title
+ ? html`
${this.title}
`
+ : nothing}
@@ -63,7 +67,7 @@ class HaAlert extends LitElement {
label="Dismiss alert"
.path=${mdiClose}
>`
- : ""}
+ : nothing}
@@ -105,6 +109,10 @@ class HaAlert extends LitElement {
width: 100%;
text-align: var(--float-start);
}
+ .content.narrow {
+ flex-direction: column;
+ align-items: flex-end;
+ }
.action {
z-index: 1;
width: min-content;
diff --git a/src/panels/config/scene/ha-scene-editor.ts b/src/panels/config/scene/ha-scene-editor.ts
index 38379bc8186c..80b6a97918a7 100644
--- a/src/panels/config/scene/ha-scene-editor.ts
+++ b/src/panels/config/scene/ha-scene-editor.ts
@@ -383,37 +383,22 @@ export class HaSceneEditor extends SubscribeMixin(
narrow: !this.isWide,
})}
>
- ${this._mode === "live"
- ? html`
- ${this.hass.localize(
- "ui.panel.config.scene.editor.live_preview_detail"
- )}
- ${this.hass.localize(
- "ui.panel.config.scene.editor.back_to_review_mode"
- )}
- `
- : html`
- ${this.hass.localize(
- "ui.panel.config.scene.editor.review_mode_detail"
- )}
- ${this.hass.localize(
- "ui.panel.config.scene.editor.live_preview"
- )}
- `}
+
+ ${this.hass.localize(
+ `ui.panel.config.scene.editor.${this._mode === "live" ? "live_preview_detail" : "review_mode_detail"}`
+ )}
+
+ ${this.hass.localize(
+ `ui.panel.config.scene.editor.${this._mode === "live" ? "back_to_review_mode" : "live_preview"}`
+ )}
+
+