change padding
Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
This commit is contained in:
@@ -42,11 +42,11 @@ import com.vaadin.ui.themes.ValoTheme;
|
|||||||
public abstract class AbstractFilterButtons extends Table {
|
public abstract class AbstractFilterButtons extends Table {
|
||||||
|
|
||||||
private static final long serialVersionUID = 7783305719009746375L;
|
private static final long serialVersionUID = 7783305719009746375L;
|
||||||
|
|
||||||
private static final String DEFAULT_GREEN = "rgb(44,151,32)";
|
private static final String DEFAULT_GREEN = "rgb(44,151,32)";
|
||||||
|
|
||||||
protected static final String FILTER_BUTTON_COLUMN = "filterButton";
|
protected static final String FILTER_BUTTON_COLUMN = "filterButton";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
protected transient EventBus.SessionEventBus eventBus;
|
protected transient EventBus.SessionEventBus eventBus;
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ public abstract class AbstractFilterButtons extends Table {
|
|||||||
createTable();
|
createTable();
|
||||||
eventBus.subscribe(this);
|
eventBus.subscribe(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreDestroy
|
@PreDestroy
|
||||||
void destroy() {
|
void destroy() {
|
||||||
eventBus.unsubscribe(this);
|
eventBus.unsubscribe(this);
|
||||||
@@ -120,6 +120,7 @@ public abstract class AbstractFilterButtons extends Table {
|
|||||||
? item.getItemProperty(SPUILabelDefinitions.VAR_COLOR).getValue().toString() : DEFAULT_GREEN;
|
? item.getItemProperty(SPUILabelDefinitions.VAR_COLOR).getValue().toString() : DEFAULT_GREEN;
|
||||||
final Button typeButton = createFilterButton(id, name, desc, color, itemId);
|
final Button typeButton = createFilterButton(id, name, desc, color, itemId);
|
||||||
typeButton.addClickListener(event -> filterButtonClickBehaviour.processFilterButtonClick(event));
|
typeButton.addClickListener(event -> filterButtonClickBehaviour.processFilterButtonClick(event));
|
||||||
|
typeButton.addStyleName("generatedColumnPadding");
|
||||||
if (typeButton.getData().equals(SPUIDefinitions.NO_TAG_BUTTON_ID) && isNoTagSateSelected()) {
|
if (typeButton.getData().equals(SPUIDefinitions.NO_TAG_BUTTON_ID) && isNoTagSateSelected()) {
|
||||||
filterButtonClickBehaviour.setDefaultClickedButton(typeButton);
|
filterButtonClickBehaviour.setDefaultClickedButton(typeButton);
|
||||||
} else if (id != null && isClickedByDefault(name)) {
|
} else if (id != null && isClickedByDefault(name)) {
|
||||||
|
|||||||
@@ -181,4 +181,8 @@
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.v-button-generatedColumnPadding .v-button-tiny {
|
||||||
|
padding: 0 0px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user