From 7dd4c3e3e302949a2ecd91afdb88a011841cb8e7 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 9 Feb 2023 13:34:36 +0100 Subject: [PATCH] import public assets (where possible) instead of importing absolute so vite's builder properly adds the baseUrl in front of the static assets --- .../apps/auth/src/auth-layout.element.ts | 8 +++++--- .../backoffice-frame/backoffice-header.element.ts | 5 +++-- .../installer/shared/layout/installer-layout.element.ts | 8 +++++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/apps/auth/src/auth-layout.element.ts b/src/Umbraco.Web.UI.Client/apps/auth/src/auth-layout.element.ts index 068b36878b..562a927ed5 100644 --- a/src/Umbraco.Web.UI.Client/apps/auth/src/auth-layout.element.ts +++ b/src/Umbraco.Web.UI.Client/apps/auth/src/auth-layout.element.ts @@ -1,5 +1,7 @@ -import { css, CSSResultGroup, html, LitElement } from 'lit'; +import {css, CSSResultGroup, html, LitElement, unsafeCSS} from 'lit'; import { customElement } from 'lit/decorators.js'; +import logoImg from '/umbraco_logomark_white.svg'; +import loginImg from '/login.jpeg'; @customElement('umb-auth-layout') export class UmbAuthLayout extends LitElement { @@ -11,7 +13,7 @@ export class UmbAuthLayout extends LitElement { background-position: 50%; background-repeat: no-repeat; background-size: cover; - background-image: url('login.jpeg'); + background-image: url('${unsafeCSS(loginImg)}'); width: 100vw; height: 100vh; } @@ -53,7 +55,7 @@ export class UmbAuthLayout extends LitElement {