Skip to content

Commit b168043

Browse files
Adapt css so grid fits window size dynamically. (#249)
1 parent 06c7a8f commit b168043

File tree

2 files changed

+2
-2
lines changed
  • sample-tracking-status-overview-app/src/main

2 files changed

+2
-2
lines changed

sample-tracking-status-overview-app/src/main/groovy/life/qbic/portal/sampletracking/view/projects/ProjectView.java

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ private ResponsiveGrid<Project> createProjectGrid() {
259259
.setId("title")
260260
.setExpandRatio(1)
261261
.setStyleGenerator(it -> "title-cell")
262+
.setMinimumWidthFromContent(false)
262263
.setDescriptionGenerator(Project::title)
263264
.setResizable(false)
264265
.setSortable(false);

sample-tracking-status-overview-app/src/main/webapp/VAADIN/themes/mytheme/mytheme.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292

9393
.title-cell {
9494
min-width: 100px;
95-
max-width: 40%;
9695
}
9796

9897
.code-cell {
@@ -127,7 +126,7 @@
127126

128127
/* projectGrid layout can't be smaller otherwise the download button and project/sample button will overlap*/
129128
.responsive-grid-layout {
130-
min-width: 1000px;
129+
min-width: 1200px;
131130
display: block;
132131
}
133132
}

0 commit comments

Comments
 (0)