Skip to content
6 changes: 4 additions & 2 deletions build/media_source/system/css/fields/calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
}
.calendar-container {
float: left;
min-width: 160px;
min-width: 280px;
padding: 0;
list-style: none;
border-radius: 5px;
background-color: #ffffff !important;
z-index: 1100 !important;
}
.calendar-container table {
margin: 0 0 0 55px;
table-layout: fixed;
max-width: 262px;
max-width: 290px;
border-radius: 5px;
background-color: #ffffff !important;
z-index: 1100 !important;
Expand Down Expand Up @@ -167,6 +168,7 @@ div.calendar-container table td.title { /* This holds the current "month, year"
.buttons-wrapper .btn:last-child {
margin-right: 0;
}

.time .time-title {
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg width='22' height='22' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1024 544v448q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h224v-352q0-14 9-23t23-9h64q14 0 23 9t9 23zm416 352q0-148-73-273t-198-198-273-73-273 73-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273zm224 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
Expand Down
11 changes: 5 additions & 6 deletions build/media_source/system/js/fields/calendar.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,16 +699,15 @@
cell = createElement("td", row);
cell.className = "time time-title";
cell.colSpan = 1;
cell.style.verticalAlign = 'middle';
cell.innerHTML = " ";
cell.innerHTML = "";

var cell1 = createElement("td", row);
cell1.className = "time hours-select";
cell1.colSpan = 2;
cell1.colSpan = 3;

var cell2 = createElement("td", row);
cell2.className = "time minutes-select";
cell2.colSpan = 2;
cell2.colSpan = 3;

(function () {
function makeTimePart(className, selected, range_start, range_end, cellTml) {
Expand Down Expand Up @@ -744,8 +743,8 @@
hrs -= 12;
}

var H = makeTimePart("time time-hours", hrs, t12 ? 1 : 0, t12 ? 12 : 23, cell1),
M = makeTimePart("time time-minutes", mins, 0, 59, cell2),
var H = makeTimePart("time time-hours form-select form-select-sm w-auto", hrs, t12 ? 1 : 0, t12 ? 12 : 23, cell1),
M = makeTimePart("time time-minutes form-select form-select-sm w-auto", mins, 0, 59, cell2),
AP = null;

cell = createElement("td", row);
Expand Down