Skip to content

Commit 5826162

Browse files
committed
added view-section-width-auto css class and updated aefi dashboard vaccine info card style class
1 parent 48d1c32 commit 5826162

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

sormas-ui/src/main/java/de/symeda/sormas/ui/dashboard/adverseeventsfollowingimmunization/components/AefiTypeStatisticsGroupComponent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public void update(Map<Vaccine, Map<AefiType, Long>> countsByVaccineData) {
4949
//statisticsComponent.getHeading().getTitleLabel().setValue(entry.getKey().toString());
5050
statisticsComponent.hideHeading();
5151
statisticsComponent.update(entry.getValue());
52-
statisticsComponent.addStyleNames(CssStyles.VIEW_SECTION, CssStyles.PADDING_X_8, CssStyles.HSPACE_RIGHT_3, CssStyles.VSPACE_4);
52+
statisticsComponent
53+
.addStyleNames(CssStyles.VIEW_SECTION_WIDTH_AUTO, CssStyles.PADDING_X_8, CssStyles.HSPACE_RIGHT_3, CssStyles.VSPACE_4);
5354
componentMap.put(entry.getKey(), statisticsComponent);
5455

5556
addComponent(statisticsComponent);

sormas-ui/src/main/java/de/symeda/sormas/ui/utils/CssStyles.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ private CssStyles() {
330330
public static final String GRID_ROW_GAP_1 = "grid-row-gap-1";
331331
public static final String GIS_DASHBOARD_MAP_HEADER = "gis-dashboard-map-header";
332332
public static final String GIS_DASHBOARD_MAP_FOOTER = "gis-dashboard-map-footer";
333+
public static final String VIEW_SECTION_WIDTH_AUTO = "view-section-width-auto";
333334

334335
public static String buildVaadinStyle(String primaryStyle, String... styles) {
335336
StringBuilder styleBuilder = new StringBuilder();

sormas-ui/src/main/webapp/VAADIN/themes/sormas/global.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,20 @@
382382
box-shadow: 0 0 2px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.14);
383383
}
384384

385+
.view-section-width-auto{
386+
width: auto !important;
387+
padding: 5px 8px;
388+
margin-left: 4px;
389+
border-radius: 4px;
390+
background-color: #ffffff;
391+
border-width: 0;
392+
border-style: solid;
393+
border-color: #ffffff;
394+
/*box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);*/
395+
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.14);
396+
box-shadow: 0 0 2px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.14);
397+
}
398+
385399
.page-title{
386400
font-size: 24px !important;
387401
}

0 commit comments

Comments
 (0)