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

Commit a70018a

Browse files
Merge pull request SORMAS-Foundation#3323 from ImisDevelopers/bugfix-3322-spacing-sideboxes
[IMIS] SORMAS-Foundation#3322 spacing sideboxes
2 parents 384774d + 6506f72 commit a70018a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseDataView.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,17 @@ protected void initView(String params) {
118118
sampleLocLayout.setSpacing(false);
119119

120120
SampleListComponent sampleList = new SampleListComponent(getCaseRef());
121-
sampleList.addStyleNames(CssStyles.SIDE_COMPONENT, CssStyles.VSPACE_NONE);
121+
sampleList.addStyleName(CssStyles.SIDE_COMPONENT);
122122
sampleLocLayout.addComponent(sampleList);
123123

124124
if (UserProvider.getCurrent().hasUserRight(UserRight.SAMPLE_CREATE)) {
125-
126-
Label infoSample = new Label(
125+
sampleList.addStyleName(CssStyles.VSPACE_NONE);
126+
Label sampleInfo = new Label(
127127
VaadinIcons.INFO_CIRCLE.getHtml() + " " + I18nProperties.getString(Strings.infoCreateNewSampleDiscardsChanges),
128128
ContentMode.HTML);
129-
infoSample.addStyleNames(CssStyles.VSPACE_2, CssStyles.VSPACE_TOP_4);
129+
sampleInfo.addStyleNames(CssStyles.VSPACE_2, CssStyles.VSPACE_TOP_4);
130130

131-
sampleLocLayout.addComponent(infoSample);
131+
sampleLocLayout.addComponent(sampleInfo);
132132
}
133133

134134
layout.addComponent(sampleLocLayout, SAMPLES_LOC);

0 commit comments

Comments
 (0)