add second column to dashboard

This commit is contained in:
2023-04-04 19:02:46 +02:00
parent 3386f0994f
commit 48ae47d050
2 changed files with 25 additions and 12 deletions

View File

@@ -21,9 +21,21 @@
.content {
padding: 0.5em;
}
.dashboard-area {
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: stretch;
}
.dashboard-column {
display: flex;
flex-direction: column;
/* make all columns equal width - flex-basis:0 to make all resizing start from the same size*/
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
}
.editable-hovered {
@@ -34,7 +46,6 @@
visibility: visible;
}
.handle {
display: block;
height: 1.5em;
@@ -68,16 +79,16 @@
<p>{{dashboard.description}}</p>
</div>
<div cdkDropListGroup>
<div cdkDropListGroup class="dashboard-area">
<div
cdkDropList
class="dashboard-column"
*ngFor="let column of dashboard.arrangement"
[cdkDropListData]="column"
*ngFor="let i of [0,1]"
[cdkDropListData]="i"
(cdkDropListDropped)="drop($event)">
<div
cdkDrag
*ngFor="let id of column"
*ngFor="let id of dashboard.arrangement[i]"
[attr.widget-id]="id">
<div cdkDragHandle class="handle"><img src="/assets/img/drag_handle.svg" class="icon-small"/></div>
<app-text-widget