Skip to content

Commit

Permalink
add css changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi committed Oct 16, 2024
1 parent 96f9a58 commit 89b0c47
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 2 additions & 8 deletions user-interface/frontend/themes/datamanager/components/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -789,14 +789,8 @@ vaadin-upload-file::part(meta){
margin-bottom: var(--lumo-space-s);
}

.register-samples-dialog .download-metadata,
.edit-samples-dialog .download-metadata {
display: flex;
flex-direction: column;
}

.register-samples-dialog .upload-section,
.edit-samples-dialog .upload-section {
.register-samples-dialog .section-with-title,
.edit-samples-dialog .section-with-title {
display: flex;
flex-direction: column;
}
Expand Down
Binary file modified user-interface/src/main/bundles/dev.bundle
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ public UploadWithDisplay(int maxFileSize, FileType[] fileTypes) {
errorArea.setText(fileRejected.getErrorMessage());
});
upload.addFinishedListener(it -> errorArea.setVisible(false));
add(errorArea, upload, restrictions, displayContainerTitle, displayContainer);
Div sectionWithTitle = new Div(displayContainerTitle, displayContainer);
sectionWithTitle.addClassName("section-with-title");
add(errorArea, upload, restrictions, sectionWithTitle);
}

private static String formatFileSize(int bytes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public EditSampleBatchDialog(SampleValidationService sampleValidationService,
uploadTheSampleDataTitle.addClassName("section-title");
Div uploadSection = new Div(uploadTheSampleDataTitle, uploadWithDisplay);
uploadSection.addClassName("upload-section");
uploadSection.addClassName("section-with-title");
initialView.add(batchNameField, downloadMetadataSection, uploadSection);
initialView.setVisible(true);
inProgressView.setVisible(false);
Expand Down Expand Up @@ -320,6 +321,7 @@ private Div setupDownloadMetadataSection(TemplateService templateService,
"Please download the metadata template, adapt the sample properties and upload the metadata sheet below to edit the sample batch.");
Div downloadMetadataSection = new Div();
downloadMetadataSection.addClassName("download-metadata");
downloadMetadataSection.addClassName("section-with-title");
Span sectionTitle = new Span("Download metadata template");
sectionTitle.addClassName("section-title");
sectionTitle.addClassName("download-metadata-section-title");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public RegisterSampleBatchDialog(SampleValidationService sampleValidationService
uploadTheSampleDataTitle.addClassName("section-title");
Div uploadSection = new Div(uploadTheSampleDataTitle, uploadWithDisplay);
uploadSection.addClassName("upload-section");
uploadSection.addClassName("section-with-title");
initialView.add(batchNameField, downloadMetadataSection, uploadSection);
initialView.setVisible(true);
inProgressView.setVisible(false);
Expand Down Expand Up @@ -215,6 +216,7 @@ private Div setupDownloadMetadataSection(TemplateService templateService, String
"Please download the metadata template, fill in the sample properties and upload the metadata sheet below to register the sample batch.");
Div downloadMetadataSection = new Div();
downloadMetadataSection.addClassName("download-metadata");
downloadMetadataSection.addClassName("section-with-title");
Span sectionTitle = new Span("Download metadata template");
sectionTitle.addClassName("download-metadata-section-title");
sectionTitle.addClassName("section-title");
Expand Down

0 comments on commit 89b0c47

Please sign in to comment.