Skip to content

Commit 4ebffc0

Browse files
committed
pr fixes
1 parent 6646eac commit 4ebffc0

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

ui/src/elements/ngm-cam-configuration.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,13 @@ export class NgmCamConfiguration extends LitElementI18n {
326326
<div class="ngm-cam-conf-slider">
327327
<div>
328328
<label>${c.label()}</label>
329-
<input style="border: none;padding: 0; width: 50%; background-color: unset; justify-items: end"
330-
type="number"
329+
<input type="number" class="ngm-cam-conf-number-input"
331330
min="${c.minInputValue ?? c.minValue}"
332331
max="${c.maxInputValue ?? c.maxValue}"
333332
step="${c.inputStep ?? c.step}"
334333
.value=${c.getInputValue ? c.getInputValue() : c.getValue()}
335334
@input=${c.onInputChange ? c.onInputChange : c.onSliderChange}
336-
335+
337336
/>
338337
</div>
339338
<input type="range" class="ngm-slider" style=${styleMap(c.style())}

ui/src/elements/ngm-cam-coordinates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class NgmCamCoordinates extends LitElementI18n {
9797
}
9898

9999
render() {
100-
if (!this.coordinates ?? !this.coordinates[this.key]) {
100+
if (!this.coordinates || !this.coordinates[this.key]) {
101101
return '';
102102
}
103103
const c = this.coordinates[this.key];

ui/src/style/ngm-cam-configuration.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ ngm-cam-configuration {
4545
width: 100%;
4646
}
4747

48+
.ngm-cam-conf-number-input {
49+
border: none;
50+
padding: 0;
51+
width: 50%;
52+
background-color: unset;
53+
justify-items: end
54+
}
55+
4856
.ngm-cam-coord {
4957
display: flex;
5058
flex-direction: column;

0 commit comments

Comments
 (0)