From 720c544d6ef65c0a4f09e3fb9e7ddaa53af609ad Mon Sep 17 00:00:00 2001 From: Olli Mannevaara Date: Mon, 11 Mar 2024 10:17:24 +0200 Subject: [PATCH] Fix layout by removing grid cells --- .../publications2.component.html | 444 +++++++++--------- .../publications2.component.scss | 32 +- 2 files changed, 229 insertions(+), 247 deletions(-) diff --git a/src/app/portal/components/results/publications2/publications2.component.html b/src/app/portal/components/results/publications2/publications2.component.html index 2b3c6d417..c77cc78d2 100644 --- a/src/app/portal/components/results/publications2/publications2.component.html +++ b/src/app/portal/components/results/publications2/publications2.component.html @@ -687,318 +687,322 @@

Julkaisut - {{total$ | async}}

-
- -
-
Rajaukset ({{filterCount$ | async}}):
- - - - - -
-
{{yearFilter.year}}
- -
+ +
+
+ +
+
Rajaukset ({{filterCount$ | async}}):
+ + + + + +
+
{{yearFilter.year}}
+ +
+ +
- - - - + + + -
-
{{organizationFilter.name}}
- -
+
+
{{organizationFilter.name}}
+ +
+
-
- - - + + + -
-
{{fieldsOfScienceFilter.name}}
- -
+
+
{{fieldsOfScienceFilter.name}}
+ +
+
-
- - - + + + -
-
{{publicationTypeCodeFilter.name}}
- -
+
+
{{publicationTypeCodeFilter.name}}
+ +
+
-
- - - + + + -
-
{{languageCodeFilter.name}}
- -
+
+
{{languageCodeFilter.name}}
+ +
+
-
- - - + + + -
-
{{publicationFormatFilter.name}}
- -
+
+
{{publicationFormatFilter.name}}
+ +
+
-
- - - + + + -
-
{{publicationAudienceFilter.name}}
- -
+
+
{{publicationAudienceFilter.name}}
+ +
+
-
- - - + + + -
-
{{peerReviewedFilter.name}}
- -
+
+
{{peerReviewedFilter.name}}
+ +
+
-
- - - + + + -
-
{{parentPublicationTypeFilter.name}}
- -
+
+
{{parentPublicationTypeFilter.name}}
+ +
+
-
- - - + + + -
-
{{internationalPublicationFilter.name}}
- -
+
+
{{internationalPublicationFilter.name}}
+ +
+
-
- - - + + + -
-
{{articleTypeCodeFilter.name}}
- -
+
+
{{articleTypeCodeFilter.name}}
+ +
+
-
- - - + + + -
-
{{jufoClassCodeFilter.id}}
- -
+
+
{{jufoClassCodeFilter.id}}
+ +
+
-
- + - - - + + + -
-
{{openAccessFilter.name}}
- -
+
+
{{openAccessFilter.name}}
+ +
+
-
- - - + + + -
-
{{publisherOpenAccessFilter.name}}
- -
+
+
{{publisherOpenAccessFilter.name}}
+ +
+
-
- - - + + + -
-
{{selfArchivedCodeFilter.name}}
- -
+
+
{{selfArchivedCodeFilter.name}}
+ +
+
-
- -
-
Tyhjennä rajaukset
- + +
+
Tyhjennä rajaukset
+ +
+
+
+
-
- -
+
+ + + + -
-
- - - + + + - - - + + + - - - + + +
+
+ Julkaisun nimi +
- - -
-
- Julkaisun nimi +
+ - -
-
+ + - - + +
+
- -
-
+
+ +
+ +
+
-
- -
- -
-
+ +
+ +
+
- -
- -
-
+ +
+ +
+
+
- -
- -
-
-
+
+
- - + + - - +
+
Tekijät
-
-
Tekijät
+ +
- -
+
-
+ +
+
+
- -
-
- + + - - +
+
+ Julkaisukanava +
-
-
- Julkaisukanava +
- -
+ - + +
+
+ - -
-
- + + - - +
+
+ Julkaisuvuosi +
-
-
- Julkaisuvuosi +
- -
- - + - -
-
- + +
+
+ -
- -
-
+ + + +
-
-
- +
+
+ +
diff --git a/src/app/portal/components/results/publications2/publications2.component.scss b/src/app/portal/components/results/publications2/publications2.component.scss index 392447b06..e0d45dcc2 100644 --- a/src/app/portal/components/results/publications2/publications2.component.scss +++ b/src/app/portal/components/results/publications2/publications2.component.scss @@ -8,22 +8,12 @@ minmax(0, auto) minmax(0, auto); - // grid-template-columns: 0px 350px 1fr 100px 0px; - // grid-template-columns: 100px 350px auto auto 100px; - // grid-template-columns: 1fr 350px 4fr 4fr 1fr; - // grid-template-columns: 1fr 350px minmax(0, 1fr) minmax(0, 1fr) 1fr; - // grid-template-columns: minmax(0, 1fr) 350px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); - // grid-template-columns: minmax(0, 1fr) 350px minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); - grid-template-columns: 1fr 350px 1100px 1fr; grid-template-areas: "search search search search" - /*". tabs tabs ."*/ ". info info ." - ". filters summary ." - ". filters results ." - ". filters pagination ."; + ". filters results ."; } @media (max-width: 1200px) { @@ -32,11 +22,8 @@ grid-template-areas: "search search" - /*"tabs tabs"*/ "info info" - "filters summary" "filters results" - "filters pagination"; } } @@ -46,12 +33,9 @@ grid-template-areas: "search" - /*"tabs"*/ "info" - "summary" "filters-toggle" "results" - "pagination"; } } @@ -75,21 +59,15 @@ grid-area: filters-toggle; } -.search-summary { - grid-area: summary; -} - -.search-results { - grid-area: results; -} - .search-pagination { - grid-area: pagination; - display: flex; justify-content: center; } +.search-combination { + grid-area: results; +} + /* Ensure the table takes the full width */ cdk-table { // width: 100%;