@@ -186,14 +186,14 @@ <h1>Fans & Temperatures</h1>
186
186
` ) ;
187
187
fanContainer . append ( tabsContainer ) ;
188
188
189
- const controlsContainer = $ ( '<div>' ) . addClass ( 'chart-controls-container' ) . attr ( 'id' , `chart-controls-${ key } ` ) ;
189
+ const controlsContainer = $ ( '<div>' ) . addClass ( 'chart-controls-container form-grid ' ) . attr ( 'id' , `chart-controls-${ key } ` ) ;
190
190
const chartContainer = $ ( '<div>' ) . addClass ( 'chart-container' ) . attr ( 'id' , `chart-${ key } ` ) ;
191
191
chartContainer . append ( `<h3 style="position: absolute; opacity: 30%; margin-inline: auto; width: fit-content; left:0; right:0; top: 50%; transform: translateY(-50%); user-select: none;">${ fanLabelOverride } </h3>` ) ;
192
192
193
193
const svg = $ ( `<svg width="100%" height="100%"></svg>` ) . attr ( 'id' , `svg-${ key } ` ) . appendTo ( chartContainer ) ;
194
194
195
195
const temp_src_select_label = $ ( `<label for="sensor_id-${ key } ">Temperature source:</label>` ) ;
196
- const temp_src_select = $ ( `<select style="bottom: 10px; right: 10px;"></select><br> ` ) . attr ( 'id' , `sensor_id-${ key } ` )
196
+ const temp_src_select = $ ( `<select style="bottom: 10px; right: 10px;"></select>` ) . attr ( 'id' , `sensor_id-${ key } ` )
197
197
for ( const t_sensor of available_sensors ) {
198
198
temp_src_select . append ( $ ( '<option>' , {
199
199
value : t_sensor ,
@@ -212,7 +212,6 @@ <h1>Fans & Temperatures</h1>
212
212
}
213
213
rpm_select_label . appendTo ( controlsContainer ) ;
214
214
rpm_select . appendTo ( controlsContainer ) ;
215
- $ ( `<br>` ) . appendTo ( controlsContainer ) ;
216
215
217
216
const temp_select_label = $ ( `<label for="temp_th-${ key } ">Temperature alarm:</label>` ) ;
218
217
const temp_select = $ ( `<select style="bottom: 10px; right: 100px;"></select>` ) . attr ( 'id' , `temp_th-${ key } ` ) ;
@@ -228,7 +227,6 @@ <h1>Fans & Temperatures</h1>
228
227
}
229
228
temp_select_label . appendTo ( controlsContainer ) ;
230
229
temp_select . appendTo ( controlsContainer ) ;
231
- $ ( `<br>` ) . appendTo ( controlsContainer ) ;
232
230
233
231
const halt_select_label = $ ( `<label for="halt_on-${ key } ">Halt PC on:</label>` ) ;
234
232
const halt_select = $ ( `<select style="bottom: 10px; right: 100px;"></select>` ) . attr ( 'id' , `halt-${ key } ` ) ;
@@ -238,7 +236,6 @@ <h1>Fans & Temperatures</h1>
238
236
halt_select . append ( $ ( '<option>' , { value : 3 , text : 'Halt on both' , selected : halt_on == 3 } ) ) ;
239
237
halt_select_label . appendTo ( controlsContainer ) ;
240
238
halt_select . appendTo ( controlsContainer ) ;
241
- $ ( `<br>` ) . appendTo ( controlsContainer ) ;
242
239
243
240
const stepupdown_select_label = $ ( `<label for="step-${ key } ">Step up/down duration:</label>` ) ;
244
241
const stepupdown_select = $ ( `<select style="bottom: 10px; right: 100px;"></select>` ) . attr ( 'id' , `step-${ key } ` ) ;
@@ -247,22 +244,21 @@ <h1>Fans & Temperatures</h1>
247
244
}
248
245
stepupdown_select_label . appendTo ( controlsContainer ) ;
249
246
stepupdown_select . appendTo ( controlsContainer ) ;
250
- $ ( `<br>` ) . appendTo ( controlsContainer ) ;
251
247
252
- $ ( '<hr>' ) . appendTo ( controlsContainer ) ;
248
+ $ ( '<hr style="grid-column: 1 / -1;" >' ) . appendTo ( controlsContainer ) ;
253
249
254
250
$ ( '#tab-curve-' + key ) . append ( chartContainer ) ;
255
251
256
252
const pidControlsContainer = $ ( `
257
- <div class="pid-controls" id="pid-controls-${ key } " style="display: block ;">
253
+ <div class="pid-controls form-grid " id="pid-controls-${ key } " style="display: grid; gap: 15px 10px ;">
258
254
<label for="pid_target-${ key } ">Target Temperature (°${ units } ):</label>
259
- <input type="number" id="pid_setpoint-${ key } " value="${ pid_setpoint || 30 } "><br>
255
+ <input type="number" id="pid_setpoint-${ key } " value="${ pid_setpoint || 30 } ">
260
256
<label for="pid_p-${ key } " title="Proportional (Kp): How strongly the fan reacts to the current temperature difference. Higher values mean a stronger reaction. Range: 0.1 - 10.0">Reaction Speed:</label>
261
- <input type="number" id="pid_kp-${ key } " step="0.1" value="${ pid_kp || 1.0 } " min="0.1" max="10.0"><br>
257
+ <input type="number" id="pid_kp-${ key } " step="0.1" value="${ pid_kp || 1.0 } " min="0.1" max="10.0">
262
258
<label for="pid_i-${ key } " title="Integral (Ki): Corrects for small, steady-state temperature errors over time. Helps eliminate temperature drift. Range: 0.0 - 10.0">Correction Strength:</label>
263
- <input type="number" id="pid_ki-${ key } " step="0.1" value="${ pid_ki || 0.1 } " min="0.0" max="10.0"><br>
259
+ <input type="number" id="pid_ki-${ key } " step="0.1" value="${ pid_ki || 0.1 } " min="0.0" max="10.0">
264
260
<label for="pid_d-${ key } " title="Derivative (Kd): Predicts future temperature changes and dampens the fan's reaction to prevent overshooting the target. Range: 0.0 - 10.0">Stability:</label>
265
- <input type="number" id="pid_kd-${ key } " step="0.1" value="${ pid_kd || 0.5 } " min="0.0" max="10.0"><br>
261
+ <input type="number" id="pid_kd-${ key } " step="0.1" value="${ pid_kd || 0.5 } " min="0.0" max="10.0">
266
262
</div>
267
263
` ) ;
268
264
$ ( '#tab-pid-' + key ) . append ( pidControlsContainer ) ;
0 commit comments