nodebb-plugin-calendar-onekite 11.2.3 → 11.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/client.js +23 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-calendar-onekite",
3
- "version": "11.2.3",
3
+ "version": "11.2.4",
4
4
  "description": "FullCalendar-based equipment reservation workflow with admin approval & HelloAsso payment for NodeBB",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/public/client.js CHANGED
@@ -3,6 +3,27 @@
3
3
  define('forum/calendar-onekite', ['alerts', 'bootbox', 'hooks'], function (alerts, bootbox, hooks) {
4
4
  'use strict';
5
5
 
6
+ // Ensure small UI tweaks are applied even when themes override bootstrap defaults.
7
+ (function ensureOneKiteStyles() {
8
+ try {
9
+ if (document.getElementById('onekite-inline-styles')) return;
10
+ const style = document.createElement('style');
11
+ style.id = 'onekite-inline-styles';
12
+ style.textContent = `
13
+ /* Fix clipped time text in selects on desktop */
14
+ .onekite-time-select.form-select {
15
+ min-height: 38px;
16
+ padding-top: .375rem;
17
+ padding-bottom: .375rem;
18
+ line-height: 1.25;
19
+ }
20
+ `;
21
+ document.head.appendChild(style);
22
+ } catch (e) {
23
+ // ignore
24
+ }
25
+ })();
26
+
6
27
  // Prevent the reservation dialog from opening twice due to select/dateClick
7
28
  // interactions or quick re-renders.
8
29
  let isDialogOpen = false;
@@ -101,7 +122,7 @@ define('forum/calendar-onekite', ['alerts', 'bootbox', 'hooks'], function (alert
101
122
  <input type="date" class="form-control" id="onekite-se-start-date" value="${escapeHtml(toDateInputValue(seStart))}" />
102
123
  </div>
103
124
  <div class="col-5">
104
- <select class="form-select" id="onekite-se-start-time">${seTimeOptions(seStartTime, false)}</select>
125
+ <select class="form-select onekite-time-select" id="onekite-se-start-time">${seTimeOptions(seStartTime, false)}</select>
105
126
  </div>
106
127
  </div>
107
128
  </div>
@@ -112,7 +133,7 @@ define('forum/calendar-onekite', ['alerts', 'bootbox', 'hooks'], function (alert
112
133
  <input type="date" class="form-control" id="onekite-se-end-date" value="${escapeHtml(toDateInputValue(seEnd))}" />
113
134
  </div>
114
135
  <div class="col-5">
115
- <select class="form-select" id="onekite-se-end-time">${seTimeOptions(seEndTime, true)}</select>
136
+ <select class="form-select onekite-time-select" id="onekite-se-end-time">${seTimeOptions(seEndTime, true)}</select>
116
137
  </div>
117
138
  </div>
118
139
  </div>