Some small UI tweaks (#2901)
* ui: Set target details tab sheet as full split size Signed-off-by: Mohamed Belaouad <mohamed.belaouad@wattsense.com> * ui: Use vertical split to separate target details * ui: Pin actions in target details action history --------- Signed-off-by: Mohamed Belaouad <mohamed.belaouad@wattsense.com>
This commit is contained in:
@@ -57,9 +57,9 @@ public class TargetActionsHistory extends Grid<TargetActionsHistory.ActionStatus
|
||||
.setComparator(ActionStatusEntry::getLastModifiedAt);
|
||||
|
||||
addColumn(new ComponentRenderer<>(ActionStatusEntry::getForceTypeIcon)).setHeader("Type").setAutoWidth(true).setFlexGrow(0);
|
||||
addColumn(new ComponentRenderer<>(ActionStatusEntry::getActionsLayout)).setHeader("Actions").setAutoWidth(true).setFlexGrow(0);
|
||||
addColumn(new ComponentRenderer<>(ActionStatusEntry::getActionsLayout)).setHeader("Actions").setAutoWidth(true).setFlexGrow(0).setFrozenToEnd(true);
|
||||
addColumn(new ComponentRenderer<>(ActionStatusEntry::getForceQuitLayout)).setHeader("Force Quit").setAutoWidth(true)
|
||||
.setFlexGrow(0);
|
||||
.setFlexGrow(0).setFrozenToEnd(true);;
|
||||
addItemClickListener(e -> actionStepsGrid.setActionId(e.getItem().action.getId()));
|
||||
this.actionStepsGrid = actionStepsGrid;
|
||||
}
|
||||
|
||||
@@ -353,6 +353,7 @@ public class TargetView extends TableView<TargetView.TargetWithDs, String> {
|
||||
|
||||
private TargetDetailedView(final HawkbitMgmtClient hawkbitClient) {
|
||||
final TabSheet tabSheet = new TabSheet();
|
||||
tabSheet.setWidthFull();
|
||||
targetId = new Span();
|
||||
targetDetails = new TargetDetails(hawkbitClient);
|
||||
targetAssignedInstalled = new TargetAssignedInstalled(hawkbitClient);
|
||||
|
||||
@@ -75,7 +75,6 @@ public class TableView<T, ID> extends Div implements Constants, BeforeEnterObser
|
||||
splitLayout = new SplitLayout();
|
||||
splitLayout.setSizeFull();
|
||||
splitLayout.setOrientation(SplitLayout.Orientation.HORIZONTAL);
|
||||
splitLayout.addThemeVariants(SplitLayoutVariant.LUMO_SMALL);
|
||||
splitLayout.setSplitterPosition(100);
|
||||
splitLayout.addToPrimary(selectionGrid);
|
||||
detailsPanel = new Div();
|
||||
|
||||
Reference in New Issue
Block a user