|
3 | 3 | </svelte:head> |
4 | 4 |
|
5 | 5 | <!-- Header --> |
6 | | -<div class="{themeSettings.headerWidthOption === 'FULL_SIZE' ? 'container-fluid' : 'container'} position-relative" |
7 | | - class:bg-white={!themeSettings.headerBgColor} |
8 | | - id="header" style="{themeSettings.headerHeight ? `height: ${themeSettings.headerHeight}px;` : ''}"> |
| 6 | +<div |
| 7 | + class="rounded {themeSettings.headerWidthOption === 'FULL_SIZE' |
| 8 | + ? 'container-fluid' |
| 9 | + : 'container'} position-relative" |
| 10 | + class:bg-white={!themeSettings.headerBgColor} |
| 11 | + id="header" |
| 12 | + style="height: {themeSettings.headerHeight || '256'}px;"> |
9 | 13 | <img |
10 | 14 | alt={$_("components.header.alt")} |
11 | | - class="{(themeSettings.logoHeight || themeSettings.logoWidth) ? '' : 'img-fluid'} p-3 position-absolute {logoPositionClasses}" |
12 | | - class:d-none="{themeSettings.logoVisibility === false}" |
13 | | - height="{themeSettings.logoHeight || 'auto'}" |
| 15 | + class="{themeSettings.logoHeight || themeSettings.logoWidth |
| 16 | + ? '' |
| 17 | + : 'img-fluid'} p-3 position-absolute {logoPositionClasses}" |
| 18 | + class:d-none={themeSettings.logoVisibility === false} |
| 19 | + height={themeSettings.logoHeight || "auto"} |
14 | 20 | src="/api/websiteLogo?hash={$session.siteInfo.websiteLogoHash}" |
15 | | - style="{!themeSettings.logoHeight && !themeSettings.logoWidth ? 'height: 100%; width: 100%; object-fit: contain;' : ''} " |
| 21 | + style="{!themeSettings.logoHeight && !themeSettings.logoWidth |
| 22 | + ? 'height: 100%; width: 100%; object-fit: contain;' |
| 23 | + : ''} " |
16 | 24 | title={$session.siteInfo.websiteName} |
17 | | - width="{themeSettings.logoWidth || 'auto'}" /> |
| 25 | + width={themeSettings.logoWidth || "auto"} /> |
18 | 26 | </div> |
19 | 27 |
|
20 | 28 | <!-- Header End --> |
|
26 | 34 | const session = getContext("session"); |
27 | 35 | const themeSettings = getContext("themeSettings"); |
28 | 36 |
|
29 | | - $: logoPosition = themeSettings.logoPosition ? themeSettings.logoPosition : "CENTER"; |
| 37 | + $: logoPosition = themeSettings.logoPosition |
| 38 | + ? themeSettings.logoPosition |
| 39 | + : "CENTER"; |
30 | 40 | $: logoPositionClasses = getLogoPositionClasses(logoPosition); |
31 | 41 |
|
32 | 42 | function getLogoPositionClasses(logoPosition) { |
|
0 commit comments