Skip to content

Commit d320ffc

Browse files
author
Maciej Kleban
committed
Allow displaying home-news and home-header at the same time when set
1 parent 44933e6 commit d320ffc

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/app/home-page/home-page.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@if (homeHeaderMetadataValue$ | async; as homeHeaderMetadataValue) {
2-
<div class="container">
2+
<div class="container home-header">
33
<ds-markdown-viewer [value]="homeHeaderMetadataValue"></ds-markdown-viewer>
44
</div>
55
}
6-
@else {
7-
<ds-home-coar></ds-home-coar>
8-
<ds-home-news></ds-home-news>
9-
}
6+
7+
<ds-home-coar></ds-home-coar>
8+
<ds-home-news></ds-home-news>
9+
1010
@if (showDiscoverFilters) {
1111
<ds-configuration-search-page
1212
[sideBarWidth]="3"

src/app/home-page/home-page.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@
44
max-width: none;
55
}
66
}
7+
8+
.home-header {
9+
// Using double of --ds-content-spacing because home-news, which is right below the header,
10+
// is using margin-top: var(--ds-content-spacing) * -1
11+
margin-bottom: calc(var(--ds-content-spacing) * 2);
12+
}

src/environments/environment.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export const environment: BuildConfig = {
267267
pageSize: 20,
268268
},
269269
homePage: {
270+
showTopFooter: false,
270271
recentSubmissions: {
271272
pageSize: 5,
272273
//sort record of recent submission

0 commit comments

Comments
 (0)