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:
Momo Bel
2026-02-11 09:49:56 +01:00
committed by GitHub
parent d3986c4531
commit 17eacc729b
3 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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();