Skip to content

Commit 7a12d77

Browse files
fix(editor/ied): fixed styling how DA(I) values are displayed. (openscd#872)
* 823 Added css styling to the da-container getValue() method. This breaks the text onto a new line if the text is too long. if there are multiple words, it tries to break it into logic pieces. * 823 Moved the css to the H4 element
1 parent 18cc4ab commit 7a12d77

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/editors/ied/da-container.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,10 @@ export class DAContainer extends Container {
213213
color: var(--mdc-theme-on-surface);
214214
font-family: 'Roboto', sans-serif;
215215
font-weight: 300;
216-
overflow: hidden;
217-
white-space: nowrap;
218-
text-overflow: ellipsis;
219216
margin: 0px;
220217
padding-left: 0.3em;
218+
word-break: break-word;
219+
white-space: pre-wrap;
221220
}
222221
223222
mwc-icon-button {

0 commit comments

Comments
 (0)