Skip to content

Commit

Permalink
display cards in row, taking all width
Browse files Browse the repository at this point in the history
  • Loading branch information
gsambrotta committed Oct 26, 2023
1 parent 75d6136 commit 5bc7807
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
20 changes: 20 additions & 0 deletions src/app/blocks/batch-block/batch-block.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.batch-block-flex {
background-color: black;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
gap: 10px 20px;
overflow: hidden;
}

.multi-wrapper {
flex: 1;
overflow: hidden;
min-width: 250px;
max-width: 50%;

&:last-child {
flex-shrink: 0;
}
}
3 changes: 2 additions & 1 deletion src/app/blocks/batch-block/batch-block.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export class BatchBlockComponent implements OnInit, OnChanges {
hasError = false;
errorMessage = '';

@HostBinding('class.batch-block-flex') flex: false;
@HostBinding('class.batch-block-flex')
flex: boolean = false;

constructor() { }

Expand Down
6 changes: 5 additions & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ app-workflow-cell-renderer app-actions-block.block-wrapper {
}

.batch-block-flex {
background-color: red;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
justify-content: flex-start;
align-items: center;
gap: 10px 20px;
overflow: hidden;
}

.tag-list {
Expand Down
6 changes: 6 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ dynamic-material-form-control:not(:last-child) {
// box-shadow: 0;
// background-color: #f3f3f3;
//}

img {
object-fit: contain;
width: 100%;
padding: 40px;
}
}


Expand Down

0 comments on commit 5bc7807

Please sign in to comment.