Skip to content

Commit 0f4963c

Browse files
Andrea Barbassovins01-4science
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-2286 (pull request DSpace#3026)
[DSC-2283] avoid metadata rendering overflowing Approved-by: Francesco Molinaro
2 parents ae3f0a7 + 6fca084 commit 0f4963c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:host {
2+
word-break: break-word;
3+
}

src/app/cris-layout/cris-layout-matrix/cris-layout-box-container/boxes/metadata/row/metadata-container/metadata-render/metadata-render.component.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ describe('MetadataRenderComponent', () => {
149149
component.field = fieldMock;
150150
});
151151

152+
it('Should apply word-break style to host element', () => {
153+
const hostElement = fixture.nativeElement;
154+
expect(getComputedStyle(hostElement).wordBreak).toBe('break-word');
155+
});
156+
152157
describe('When field rendering type is not structured', () => {
153158
beforeEach(() => {
154159
component.metadataValue = metadataValue;

0 commit comments

Comments
 (0)