Refactor background-position logic in header component

This commit is contained in:
2025-04-06 20:50:49 +02:00
parent 7b377a3667
commit ab3abe7f6b
2 changed files with 9 additions and 1 deletions
@@ -1,6 +1,6 @@
<ng-container>
<header id="top"
[ngStyle]="{ 'background-image': getBackgroundImage(), 'height': height, 'background-position': 'center ' + inverseYPos + 'px' }">
[ngStyle]="{ 'background-image': getBackgroundImage(),'height': height, 'background-position': getBackgroundPosition() }">
<nav id="nav" [ngClass]="active">
<div class="container">
<div id="mobile_nav">