Hello,
I have a multi-week view scheduler, in which i use the kendo kendoSchedulerGroupHeaderTemplate
directive to style my groups according to some resources.
I want to impose a max-width on this, in order to make sure that the names of the groups are within proportion. (See example: Too-long.png)
I have my html code:
<ng-template kendoSchedulerGroupHeaderTemplate let-resource="resource">
<div class="group-header-wrapper">
<div class="group-header-main">{{ resource.text }}</div>
<div class="group-header-alt">{{ resource.line }}</div>
</div>
</ng-template>
and my css:
.group-header-wrapper {
//code
}
.group-header-main {
width: 100%;
text-align: left;
background-color: $secondary-color;
padding: 2px 4px;
}
.group-header-alt {
width: 100%;
text-align: left;
color: white;
padding: 2px 4px;
}
adding max-width to group-header-wrapper. doesn't fix this. Because the event become unaligned. (see example: unaligned.png)
How can I style this so the events are aligned with their respective slots and days?
Thanks,
Govert Jaap