Skip to content

Commit

Permalink
Decrease measurement type badge gap
Browse files Browse the repository at this point in the history
and increase objective width
  • Loading branch information
sven1103 committed Nov 14, 2024
1 parent c1e0144 commit c75be6f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@
.simple-paragraph {
font-size: var(--lumo-font-size-m);
margin-bottom: var(--lumo-space-m);
max-width: 40em;
max-width: 50em;
}

.max-height-10rem {
max-height: 10rem;
}

.overflow-auto {
overflow: auto;
}
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 @@ -148,6 +148,8 @@ public byte[] getContent() {
}

setAutoWidth(sheet);
setAutoWidth(hiddenSheet);

workbook.setActiveSheet(0);

lockSheet(hiddenSheet);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,16 @@ private void buildDesignSection(ProjectOverview projectInformation, Project proj
content.add(new SimpleParagraph("%s - %s".formatted(projectInformation.projectCode(),
projectInformation.projectTitle())));
content.add(Heading.withIconAndText(VaadinIcon.MODAL_LIST.create(), "Objective"));
content.add(new SimpleParagraph(project.getProjectIntent().objective().objective()));
content.add(buildObjectiveParagraph(project.getProjectIntent().objective().objective()));
projectDesignSection.setContent(content);
}

private static SimpleParagraph buildObjectiveParagraph(String objective) {
var paragraph = new SimpleParagraph(objective);
paragraph.addClassNames("max-height-10rem", "overflow-auto");
return paragraph;
}

private void updateProjectDesign(ProjectId projectId, ProjectInformation projectInformation) {
projectInformationService.updateTitle(projectId, projectInformation.getProjectTitle());
projectInformationService.updateObjective(projectId, projectInformation.getProjectObjective());
Expand Down Expand Up @@ -599,7 +605,7 @@ public AvatarGroup createAvatarGroup(Collection<UserInfo> userInfo) {

private Div createTags(ProjectOverview projectOverview) {
var tags = new Div();
tags.addClassNames("tag-list", "gap-large");
tags.addClassNames("tag-list", "gap-small");
buildTags(projectOverview).forEach(tags::add);
return tags;
}
Expand Down

0 comments on commit c75be6f

Please sign in to comment.