diff --git a/src/common/util/compute_rtl.ts b/src/common/util/compute_rtl.ts index b5bebfbc7d..723878e7ed 100644 --- a/src/common/util/compute_rtl.ts +++ b/src/common/util/compute_rtl.ts @@ -34,10 +34,6 @@ export function setDirectionStyles(direction: string, element: LitElement) { "--float-end", direction === "ltr" ? "right" : "left" ); - element.style.setProperty( - "--margin-title", - direction === "ltr" ? "var(--margin-title-ltr)" : "var(--margin-title-rtl)" - ); element.style.setProperty( "--scale-direction", direction === "ltr" ? "1" : "-1" diff --git a/src/components/ha-top-app-bar-fixed.ts b/src/components/ha-top-app-bar-fixed.ts index 9cf9214e70..4481c42f54 100644 --- a/src/components/ha-top-app-bar-fixed.ts +++ b/src/components/ha-top-app-bar-fixed.ts @@ -42,9 +42,12 @@ export class HaTopAppBarFixed extends TopAppBarFixedBase { } .mdc-top-app-bar__title { font-size: var(--ha-font-size-xl); - padding-inline-start: 24px; + padding-inline-start: var(--ha-space-6); padding-inline-end: initial; } + :host([narrow]) .mdc-top-app-bar__title { + padding-inline-start: var(--ha-space-2); + } `, ]; } diff --git a/src/layouts/hass-subpage.ts b/src/layouts/hass-subpage.ts index a7ac562877..d70abda6f4 100644 --- a/src/layouts/hass-subpage.ts +++ b/src/layouts/hass-subpage.ts @@ -1,6 +1,7 @@ import type { CSSResultGroup, TemplateResult } from "lit"; import { css, html, LitElement } from "lit"; import { customElement, eventOptions, property } from "lit/decorators"; +import { classMap } from "lit/directives/class-map"; import { restoreScroll } from "../common/decorators/restore-scroll"; import { goBack } from "../common/navigate"; import "../components/ha-icon-button-arrow-prev"; @@ -27,7 +28,7 @@ class HassSubpage extends LitElement { protected render(): TemplateResult { return html` -