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

Commit 8070608

Browse files
SORMAS-Foundation#3062 - Reduced size of main header line
1 parent c536d1d commit 8070608

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ public VerticalLayout getCaseViewTitleLayout(CaseDataDto caseData) {
13601360
String shortUuid = DataHelper.getShortUuid(caseData.getUuid());
13611361
String person = caseData.getPerson().getCaption();
13621362
Label caseLabel = new Label(StringUtils.isNotBlank(person) ? person + " (" + shortUuid + ")" : shortUuid);
1363-
caseLabel.addStyleNames(CssStyles.H1, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE);
1363+
caseLabel.addStyleNames(CssStyles.H2, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE, CssStyles.LABEL_PRIMARY);
13641364
titleLayout.addComponent(caseLabel);
13651365

13661366
return titleLayout;

sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ public VerticalLayout getContactViewTitleLayout(ContactDto contact) {
803803
titleLayout.addComponent(classificationLabel);
804804

805805
Label contactLabel = new Label(contact.toReference().getCaptionAlwaysWithUuid());
806-
contactLabel.addStyleNames(CssStyles.H1, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE);
806+
contactLabel.addStyleNames(CssStyles.H2, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE, CssStyles.LABEL_PRIMARY);
807807
titleLayout.addComponent(contactLabel);
808808

809809
return titleLayout;

sormas-ui/src/main/java/de/symeda/sormas/ui/events/EventController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ public VerticalLayout getEventViewTitleLayout(String uuid) {
605605
String shortUuid = DataHelper.getShortUuid(event.getUuid());
606606
String eventTitle = event.getEventTitle();
607607
Label eventLabel = new Label(StringUtils.isNotBlank(eventTitle) ? eventTitle + " (" + shortUuid + ")" : shortUuid);
608-
eventLabel.addStyleNames(CssStyles.H1, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE);
608+
eventLabel.addStyleNames(CssStyles.H2, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE, CssStyles.LABEL_PRIMARY);
609609
titleLayout.addComponent(eventLabel);
610610

611611
return titleLayout;

sormas-ui/src/main/java/de/symeda/sormas/ui/events/EventParticipantsController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public VerticalLayout getEventParticipantViewTitleLayout(EventParticipantDto eve
286286
String eventShortUuid = DataHelper.getShortUuid(event.getUuid());
287287
String eventTitle = event.getEventTitle();
288288
Label eventLabel = new Label(StringUtils.isNotBlank(eventTitle) ? eventTitle + " (" + eventShortUuid + ")" : eventShortUuid);
289-
eventLabel.addStyleNames(CssStyles.H1, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE);
289+
eventLabel.addStyleNames(CssStyles.H3, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE);
290290
titleLayout.addComponent(eventLabel);
291291

292292
if (event.getStartDate() != null) {
@@ -301,7 +301,7 @@ public VerticalLayout getEventParticipantViewTitleLayout(EventParticipantDto eve
301301
String shortUuid = DataHelper.getShortUuid(eventParticipant.getUuid());
302302
String person = eventParticipant.getPerson().toReference().getCaption();
303303
Label eventParticipantLabel = new Label(StringUtils.isNotBlank(person) ? person + " (" + shortUuid + ")" : shortUuid);
304-
eventParticipantLabel.addStyleNames(CssStyles.H1, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE);
304+
eventParticipantLabel.addStyleNames(CssStyles.H2, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE, CssStyles.LABEL_PRIMARY);
305305
titleLayout.addComponents(eventParticipantLabel);
306306

307307
return titleLayout;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public VerticalLayout getSampleViewTitleLayout(SampleDto sample) {
404404
sample.getAssociatedCase() != null ? sample.getAssociatedCase().getUuid() : null,
405405
sample.getAssociatedContact() != null ? sample.getAssociatedContact().getUuid() : null,
406406
sample.getAssociatedEventParticipant() != null ? sample.getAssociatedEventParticipant().getUuid() : null));
407-
sampleCaptionLabel.addStyleNames(CssStyles.H1, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE);
407+
sampleCaptionLabel.addStyleNames(CssStyles.H2, CssStyles.VSPACE_NONE, CssStyles.VSPACE_TOP_NONE, CssStyles.LABEL_PRIMARY);
408408
titleLayout.addComponents(sampleCaptionLabel);
409409

410410
return titleLayout;

0 commit comments

Comments
 (0)