Skip to content

Commit

Permalink
Experimental variables and groups are shown as cards with proper scro…
Browse files Browse the repository at this point in the history
…lling and size (#815)

* Experimental Variables and Groups are shown in a dedicated css grid with proper scaling

* Update Zoom of application to be smaller
  • Loading branch information
Steffengreiner authored Sep 2, 2024
1 parent ea71ecc commit 68489ed
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
40 changes: 19 additions & 21 deletions user-interface/frontend/themes/datamanager/components/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,13 @@
opacity: 0.05;
}

.experimental-group {
display: flex;
flex-direction: column;
flex: auto;
font-size: var(--lumo-font-size-s);
padding: var(--lumo-space-l);
max-width: 300px;
}

.card-collection {
display: flex;
align-content: space-evenly;
flex-flow: column;
gap: 1rem;
margin-left: 1.5rem;
margin-top: 1.5rem;
padding-left: 1.5rem;
padding-top: 1.5rem;
}

.card-collection .collection-title {
Expand All @@ -79,11 +70,10 @@
}

.card-collection .collection-content {
display: flex;
align-content: space-evenly;
flex-flow: row wrap;
gap: 1rem;
flex-direction: row;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: auto;
grid-gap: 1rem;
}

.card-collection .collection-controls {
Expand All @@ -93,29 +83,37 @@
gap: 0.5rem;
}

.experimental-group .header {
.card-collection .experimental-group {
display: flex;
flex-direction: column;
font-size: var(--lumo-font-size-s);
padding: var(--lumo-space-l);
}

.card-collection .experimental-group .header {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: var(--lumo-space-m);
}

.experimental-group .card-title {
.card-collection.experimental-group .card-title {
color: var(--lumo-secondary-text-color);
font-size: var(--lumo-font-size-m);
font-weight: bold;
white-space: nowrap;
margin-bottom: 0.5rem;
}

.experimental-group .content {
display: inline-flex;
.card-collection .experimental-group .content {
display: flex;
flex-wrap: wrap;
gap: var(--lumo-space-m);
margin-bottom: var(--lumo-space-m);
flex-direction: column;
}

.experimental-group vaadin-icon {
.card-collection .experimental-group vaadin-icon {
cursor: pointer;
width: 1em;
color: darkgrey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
grid-template-columns: 1fr;
grid-template-rows: minmax(max-content, 95%) minmax(min-content, 5%);
height: 100%;
/*Default design of components is too big for smaller screens*/
zoom: 90%;
grid-template-areas:
"content-area"
"data-manager-footer";
Expand Down Expand Up @@ -71,8 +73,8 @@
}

.main.experiment {
grid-template-columns: minmax(max-content, 100%);
grid-template-rows: auto;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
grid-template-areas:
"experimentdetails";
}
Expand Down

0 comments on commit 68489ed

Please sign in to comment.