Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ private void refreshVmTable(List<VirtualMachine> vms) {
};

javafx.scene.layout.HBox row = VmTableView.createVmRow(
vm.getName(), shortUuid, statusText, "");
vm.getName(), shortUuid, statusText);

row.setOnMouseClicked(e -> onVmRowClicked(vm));
vmListContainer.getChildren().add(row);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/tg/cyberlabmanager/pdf/PdfExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public void exportLabToPdf(Lab lab,

document = new PDDocument();
pageNum = 0;
cs = null;
newPage();

// ── Bandeau principal ─────────────────────────────────────────────────
Expand Down
24 changes: 10 additions & 14 deletions src/main/java/tg/cyberlabmanager/ui/VmTableView.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@
*/
public class VmTableView {

/**
* Cree la ligne HBox pour afficher une Machine Virtuelle dans le tableau.
*
* @param name Nom de la VM
* @param uuid UUID court
* @param status Statut en texte clair
* @param os OS de la machine
* @return La ligne d'affichage configurée
*/
public static HBox createVmRow(String name, String uuid, String status, String os) {
/**
* Cree la ligne HBox pour afficher une Machine Virtuelle dans le tableau.
*
* @param name Nom de la VM
* @param uuid UUID court
* @param status Statut en texte clair
* @return La ligne d'affichage configurée
*/
public static HBox createVmRow(String name, String uuid, String status) {
HBox row = new HBox();
row.getStyleClass().add("vm-row-selected");
row.setAlignment(Pos.CENTER_LEFT);
Expand All @@ -44,10 +43,7 @@ public static HBox createVmRow(String name, String uuid, String status, String o
};
lStatus.getStyleClass().addAll("status-badge", statusCss);

Label lOs = new Label(os);
lOs.getStyleClass().add("vm-os");

row.getChildren().addAll(lName, lUuid, lStatus, lOs);
row.getChildren().addAll(lName, lUuid, lStatus);
return row;
}
}
5 changes: 0 additions & 5 deletions src/main/resources/tg/cyberlabmanager/ui/cyberlab.css
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,6 @@
-fx-font-size: 12;
}

.vm-os {
-fx-text-fill: #D4D4D4;
-fx-font-size: 12;
}

/* Badge statut VM */
.status-badge {
-fx-font-family: "Inter", "Segoe UI", Arial, sans-serif;
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/tg/cyberlabmanager/ui/main-view.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
<Label text="VM NAME" prefWidth="240" styleClass="table-header-label"/>
<Label text="UUID" prefWidth="210" styleClass="table-header-label"/>
<Label text="STATUS" prefWidth="150" styleClass="table-header-label"/>
<Label text="OS" styleClass="table-header-label"/>
</HBox>

<!-- Liste VMs -->
Expand Down
Loading