Skip to content

Commit 6fca084

Browse files
author
Andrea Barbasso
committed
[DSC-2283] avoid metadata rendering overflowing
1 parent 2ca575c commit 6fca084

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)