From 632d8f286580a0b79247b0596c9c8740fff205bd Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 12 Sep 2025 09:39:15 +0300 Subject: [PATCH 1/3] src/app/item-page: adjust grid in simple item view The Bootstrap grid is composed of 12 columns, but we are not using the entire grid, which could lead to unexpected stacking depending on the viewport size. This also adjusts the columns to be consist- ent with the sizing use by the search results page (3+9). --- .../simple/item-types/publication/publication.component.html | 4 ++-- .../item-types/untyped-item/untyped-item.component.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/item-page/simple/item-types/publication/publication.component.html b/src/app/item-page/simple/item-types/publication/publication.component.html index f5769793132..309327539ab 100644 --- a/src/app/item-page/simple/item-types/publication/publication.component.html +++ b/src/app/item-page/simple/item-types/publication/publication.component.html @@ -18,7 +18,7 @@
-
+
@if (!(mediaViewer.image || mediaViewer.video)) { @@ -61,7 +61,7 @@ urlRegex="^https?://">
-
+
@if (showDownloadLinkAsAttachment) { } diff --git a/src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html b/src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html index 7141a88a8e2..463af9c4ce2 100644 --- a/src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html +++ b/src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html @@ -19,7 +19,7 @@
-
+
@if (!(mediaViewer.image || mediaViewer.video)) { @@ -62,7 +62,7 @@ urlRegex="^https?://">
-
+
@if (showDownloadLinkAsAttachment) { } From d76becb6b3f419f478623239f50b1c2fd54a6bbb Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 24 Feb 2026 19:45:10 +0300 Subject: [PATCH 2/3] src/app/entity-groups: adjust grid in entity item pages The Bootstrap grid is composed of 12 columns, but we are not using the entire grid, which could lead to unexpected stacking depending on the viewport size. This also adjusts the columns to be consist- ent with the sizing use by the search results page (3+9). --- .../item-pages/journal-issue/journal-issue.component.html | 4 ++-- .../item-pages/journal-volume/journal-volume.component.html | 4 ++-- .../item-pages/journal/journal.component.html | 4 ++-- .../item-pages/org-unit/org-unit.component.html | 4 ++-- .../research-entities/item-pages/person/person.component.html | 4 ++-- .../item-pages/project/project.component.html | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html b/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html index e26052285fc..9f97f7e0eda 100644 --- a/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html +++ b/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html @@ -7,7 +7,7 @@
-
+
@@ -32,7 +32,7 @@ [label]="'journalissue.page.journal-issn'">
-
+
-
+
@@ -20,7 +20,7 @@ [label]="'journalvolume.page.issuedate'">
-
+
-
+
@@ -24,7 +24,7 @@ [label]="'journal.page.editor'">
-
+
-
+
-
+
-
+
-
+
-
+
-->
-
+
Date: Fri, 27 Feb 2026 09:41:34 +0300 Subject: [PATCH 3/3] src/styles: set max-width on item page fields Set max-width of item-page-field components to 75 characters. This is in line with some best practices regarding readability, though may need to be adjusted in the future. See the following recommendations: - 50 to 75 characters: https://baymard.com/blog/line-length-readability - 60 to 80 characters: https://pimpmytype.com/line-length-line-height/ - 50 to 75 characters: https://www.uxpin.com/studio/blog/optimal-line-length-for-readability/ - 50 to 75 characters: https://medium.com/@wblekhoa/talk-aboutthe-optimal-length-of-text-in-ux-ui-525e689f0b71 - Less than 80 characters: https://www.w3.org/WAI/WCAG21/Understanding/visual-presentation.html --- src/styles/_custom_variables.scss | 1 + src/styles/_global-styles.scss | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/styles/_custom_variables.scss b/src/styles/_custom_variables.scss index 0a8a6757fb1..e8ae3549dd8 100644 --- a/src/styles/_custom_variables.scss +++ b/src/styles/_custom_variables.scss @@ -165,6 +165,7 @@ --ds-item-page-img-field-default-inline-height: 24px; + --ds-item-page-field-max-width: 75ch; --ds-qa-logo-width: 100px; diff --git a/src/styles/_global-styles.scss b/src/styles/_global-styles.scss index 6b794f06f64..3ead2664c24 100644 --- a/src/styles/_global-styles.scss +++ b/src/styles/_global-styles.scss @@ -573,3 +573,7 @@ ngb-tooltip-window { mask-size: contain; background-color: currentColor; } + +.item-page-field { + max-width: var(--ds-item-page-field-max-width); +}