diff --git a/client/modules/crm/res/templates/calendar/timeline.tpl b/client/modules/crm/res/templates/calendar/timeline.tpl
index a91f2e60a1..c89346d1d9 100644
--- a/client/modules/crm/res/templates/calendar/timeline.tpl
+++ b/client/modules/crm/res/templates/calendar/timeline.tpl
@@ -6,9 +6,8 @@
-
- {{#if calendarTypeSelectEnabled}}
-
+
{{#if calendarTypeSelectEnabled}}
{{/if}}
diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.less
index f636a3babe..c7dce4b54c 100644
--- a/frontend/less/espo/custom.less
+++ b/frontend/less/espo/custom.less
@@ -1226,6 +1226,10 @@ table.table td.cell .complex-text {
#main > .calendar-container {
margin-top: 10px;
+
+ .calendar-type-button-group {
+ margin-left: 6px;
+ }
}
#notifications-panel {
diff --git a/frontend/less/hazyblue-vertical/custom.less b/frontend/less/hazyblue-vertical/custom.less
index 053ef78077..397f5ac6d3 100644
--- a/frontend/less/hazyblue-vertical/custom.less
+++ b/frontend/less/hazyblue-vertical/custom.less
@@ -79,7 +79,8 @@ table.table {
.list-container > .list,
.panel,
.dashlet-container,
-#main > .calendar-container,
+#main > .calendar-container .calendar,
+#main > .calendar-container .timeline,
.well,
.admin-content .table.table-bordered,
.admin-content iframe {