diff --git a/src/app/home-page/home-page.component.html b/src/app/home-page/home-page.component.html
index f0760f20aa3..2992e4fb044 100644
--- a/src/app/home-page/home-page.component.html
+++ b/src/app/home-page/home-page.component.html
@@ -1,29 +1,25 @@
-
-
-
-
-
-
-
-
-
-
- 0">
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+ 0">
diff --git a/src/app/home-page/home-page.component.scss b/src/app/home-page/home-page.component.scss
index 653de42b44b..5905a5959bb 100644
--- a/src/app/home-page/home-page.component.scss
+++ b/src/app/home-page/home-page.component.scss
@@ -1,5 +1,6 @@
-:host ::ng-deep {
- .container-fluid .container {
- padding: 0;
+@include media-breakpoint-down(md) {
+ ds-themed-configuration-search-page + .container {
+ width: 100%;
+ max-width: none;
}
}
diff --git a/src/app/home-page/home-page.component.ts b/src/app/home-page/home-page.component.ts
index 4fa0e89e8ee..fc927ba07d7 100644
--- a/src/app/home-page/home-page.component.ts
+++ b/src/app/home-page/home-page.component.ts
@@ -2,6 +2,7 @@ import {
AsyncPipe,
NgClass,
NgIf,
+ NgTemplateOutlet,
} from '@angular/common';
import {
Component,
@@ -21,10 +22,8 @@ import { Site } from '../core/shared/site.model';
import { SuggestionsPopupComponent } from '../notifications/suggestions-popup/suggestions-popup.component';
import { ConfigurationSearchPageComponent } from '../search-page/configuration-search-page.component';
import { ThemedConfigurationSearchPageComponent } from '../search-page/themed-configuration-search-page.component';
-import { HostWindowService } from '../shared/host-window.service';
import { ThemedSearchFormComponent } from '../shared/search-form/themed-search-form.component';
import { PageWithSidebarComponent } from '../shared/sidebar/page-with-sidebar.component';
-import { SidebarService } from '../shared/sidebar/sidebar.service';
import { ViewTrackerComponent } from '../statistics/angulartics/dspace/view-tracker.component';
import { HomeCoarComponent } from './home-coar/home-coar.component';
import { ThemedHomeNewsComponent } from './home-news/themed-home-news.component';
@@ -36,27 +35,23 @@ import { ThemedTopLevelCommunityListComponent } from './top-level-community-list
styleUrls: ['./home-page.component.scss'],
templateUrl: './home-page.component.html',
standalone: true,
- imports: [ThemedHomeNewsComponent, NgIf, ViewTrackerComponent, ThemedSearchFormComponent, ThemedTopLevelCommunityListComponent, RecentItemListComponent, AsyncPipe, TranslateModule, NgClass, ConfigurationSearchPageComponent, SuggestionsPopupComponent, ThemedConfigurationSearchPageComponent, PageWithSidebarComponent, HomeCoarComponent],
+ imports: [ThemedHomeNewsComponent, NgTemplateOutlet, NgIf, ViewTrackerComponent, ThemedSearchFormComponent, ThemedTopLevelCommunityListComponent, RecentItemListComponent, AsyncPipe, TranslateModule, NgClass, ConfigurationSearchPageComponent, SuggestionsPopupComponent, ThemedConfigurationSearchPageComponent, PageWithSidebarComponent, HomeCoarComponent],
})
export class HomePageComponent implements OnInit {
site$: Observable;
- isXsOrSm$: Observable;
recentSubmissionspageSize: number;
showDiscoverFilters: boolean;
constructor(
@Inject(APP_CONFIG) protected appConfig: AppConfig,
protected route: ActivatedRoute,
- protected sidebarService: SidebarService,
- protected windowService: HostWindowService,
) {
this.recentSubmissionspageSize = this.appConfig.homePage.recentSubmissions.pageSize;
this.showDiscoverFilters = this.appConfig.homePage.showDiscoverFilters;
}
ngOnInit(): void {
- this.isXsOrSm$ = this.windowService.isXsOrSm();
this.site$ = this.route.data.pipe(
map((data) => data.site as Site),
);
diff --git a/src/app/shared/search/search.component.html b/src/app/shared/search/search.component.html
index a8a4bc1a6ae..2faa7c42af8 100644
--- a/src/app/shared/search/search.component.html
+++ b/src/app/shared/search/search.component.html
@@ -33,6 +33,7 @@
| translate}}
+