Skip to content

Commit

Permalink
fix(admin-ui): Fix top left logo when using setBranding
Browse files Browse the repository at this point in the history
Relates to #2225
  • Loading branch information
michaelbromley committed Jul 13, 2023
1 parent 70ee7b2 commit 120a0bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ui-devkit/scaffold/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"src/assets",
"src/i18n-messages",
{
"glob": "logo-*.png",
"glob": "logo-*.*",
"input": "static-assets",
"output": "assets"
}
Expand Down
6 changes: 4 additions & 2 deletions packages/ui-devkit/src/compiler/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import { BrandingOptions, StaticAssetDefinition, StaticAssetExtension } from './
* outputPath: path.join(__dirname, '../admin-ui'),
* extensions: [
* setBranding({
* // This is used as the branding in the top-left above the navigation
* smallLogoPath: path.join(__dirname, 'images/my-logo-sm.png'),
* // This is used on the login page
* largeLogoPath: path.join(__dirname, 'images/my-logo-lg.png'),
* faviconPath: path.join(__dirname, 'images/my-favicon.ico'),
* }),
Expand All @@ -26,13 +28,13 @@ export function setBranding(options: BrandingOptions): StaticAssetExtension {
if (options.smallLogoPath) {
staticAssets.push({
path: options.smallLogoPath,
rename: 'logo-75px.png',
rename: 'logo-top.webp',
});
}
if (options.largeLogoPath) {
staticAssets.push({
path: options.largeLogoPath,
rename: 'logo-300px.png',
rename: 'logo-login.webp',
});
}
if (options.faviconPath) {
Expand Down

0 comments on commit 120a0bb

Please sign in to comment.