mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Also fix for wide (#5417)
This commit is contained in:
parent
4150ac045d
commit
45384205eb
@ -45,7 +45,8 @@ class HassTabsSubpage extends LitElement {
|
|||||||
activeTab: PageNavigation | undefined,
|
activeTab: PageNavigation | undefined,
|
||||||
showAdvanced: boolean | undefined,
|
showAdvanced: boolean | undefined,
|
||||||
_components,
|
_components,
|
||||||
_language
|
_language,
|
||||||
|
_narrow
|
||||||
) => {
|
) => {
|
||||||
const shownTabs = tabs.filter(
|
const shownTabs = tabs.filter(
|
||||||
(page) =>
|
(page) =>
|
||||||
@ -101,7 +102,8 @@ class HassTabsSubpage extends LitElement {
|
|||||||
this._activeTab,
|
this._activeTab,
|
||||||
this.hass.userData?.showAdvanced,
|
this.hass.userData?.showAdvanced,
|
||||||
this.hass.config.components,
|
this.hass.config.components,
|
||||||
this.hass.language
|
this.hass.language,
|
||||||
|
this.narrow
|
||||||
);
|
);
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
@ -190,10 +192,8 @@ class HassTabsSubpage extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#tabbar:not(.bottom-bar) {
|
#tabbar:not(.bottom-bar) {
|
||||||
margin: auto;
|
flex: 1;
|
||||||
left: 50%;
|
justify-content: center;
|
||||||
position: absolute;
|
|
||||||
transform: translate(-50%, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user