Revert-revert: Safari fixes (#14331)

* Reapply "web: Safari fixes merge branch (#14181)"

This reverts commit a41d45834c.

* web: Fix brand preference order. Adjust header height.
This commit is contained in:
Teffen Ellis
2025-05-02 21:26:40 +02:00
committed by GitHub
parent a06645d558
commit 61a26c02b7
37 changed files with 1483 additions and 851 deletions

View File

@ -3,11 +3,10 @@ import "rapidoc";
import { CSRFHeaderName } from "@goauthentik/common/api/config";
import { EVENT_THEME_CHANGE } from "@goauthentik/common/constants";
import { globalAK } from "@goauthentik/common/global";
import { first, getCookie } from "@goauthentik/common/utils";
import { Interface } from "@goauthentik/elements/Interface";
import "@goauthentik/elements/ak-locale-context";
import { DefaultBrand } from "@goauthentik/elements/sidebar/SidebarBrand";
import { DefaultBrand } from "@goauthentik/common/ui/config";
import { themeImage } from "@goauthentik/elements/utils/images";
import { msg } from "@lit/localize";
@ -62,10 +61,6 @@ export class APIBrowser extends Interface {
);
}
async getTheme(): Promise<UiThemeEnum> {
return globalAK()?.brand.uiTheme || UiThemeEnum.Automatic;
}
render(): TemplateResult {
return html`
<ak-locale-context>