Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 96f8f7a

Browse files
1 parent 526974b commit 96f8f7a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/samples/PathogenTestListEntry.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*******************************************************************************/
1818
package de.symeda.sormas.ui.samples;
1919

20+
import org.apache.commons.lang3.StringUtils;
21+
2022
import com.vaadin.icons.VaadinIcons;
2123
import com.vaadin.shared.ui.ContentMode;
2224
import com.vaadin.ui.Alignment;
@@ -77,7 +79,9 @@ public PathogenTestListEntry(PathogenTestDto pathogenTest) {
7779
}
7880

7981
if (!DataHelper.isNullOrEmpty(pathogenTest.getTestResultText())) {
80-
Label resultTextLabel = new Label(pathogenTest.getTestResultText());
82+
Label resultTextLabel = new Label(StringUtils.abbreviate(pathogenTest.getTestResultText(), 125));
83+
resultTextLabel.setDescription(pathogenTest.getTestResultText());
84+
resultTextLabel.setWidthFull();
8185
labelLayout.addComponent(resultTextLabel);
8286
}
8387

0 commit comments

Comments
 (0)