Improve agenda

This commit is contained in:
Peter Maquiran
2021-06-16 09:51:15 +01:00
parent 38daa11b54
commit 629db09c62
2 changed files with 17 additions and 10 deletions
+8 -6
View File
@@ -99,12 +99,14 @@
<!-- Adding a customized ng-template -->
<ng-template #template let-view="view" let-row="row" let-col="col">
<div [className]="currentDayEventDisplayBorder(view.dates, row*7+col)" class="d-flex justify-center align-center" [class.with-event]="view.dates[row*7+col].events.length">
<div class="day">
{{ view.dates[row*7+col].label }}
</div>
<div class="day-container">
<div [className]="currentDayEventDisplayBorder(view.dates, row*7+col)" class="d-flex justify-center align-center" [class.with-event]="view.dates[row*7+col].events.length">
<div class="day">
{{ view.dates[row*7+col].label }}
</div>
</div>
</div>
</ng-template>
</div>
+9 -4
View File
@@ -579,18 +579,23 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
.calendar-component {
td {
padding: 7.5px !important;
padding: 8.1px !important;
div {
padding-left: 0px;
}
display: flex;
align-content: center;
justify-content: center;
}
td div:not(.day) {
background-color: red;
td div:not(.day, .day-container) {
width: 30px !important;
height: 30px;
}
tr {
display: flex;
justify-content: space-around;
}
}