Skip to content

Commit 307b4b6

Browse files
resize input fields to fill all available horizontal space
1 parent d1682fb commit 307b4b6

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

ui/src/style/objects/form.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
.form {
1919
width: 80vw;
2020

21+
.full-width-input {
22+
width: 100%;
23+
}
24+
2125
@media (min-width: 500px) {
2226
width: 400px;
2327
}

ui/src/views/plugins/quota/CreateQuotaTariff.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
<tooltip-label :title="$t('label.quota.tariff.value')" :tooltip="apiParams.value.description"/>
6363
</template>
6464
<a-input-number
65+
class="full-width-input"
6566
v-model:value="form.value"
6667
:placeholder="$t('placeholder.quota.tariff.value')" />
6768
</a-form-item>
@@ -70,6 +71,7 @@
7071
<tooltip-label :title="$t('label.quota.tariff.position')" :tooltip="apiParams.position.description" />
7172
</template>
7273
<a-input-number
74+
class="full-width-input"
7375
v-model:value="form.position"
7476
:placeholder="$t('placeholder.quota.tariff.position')" />
7577
</a-form-item>
@@ -78,6 +80,7 @@
7880
<tooltip-label :title="$t('label.start.date')" :tooltip="apiParams.startdate.description"/>
7981
</template>
8082
<a-date-picker
83+
class="full-width-input"
8184
v-model:value="form.startDate"
8285
:disabled-date="disabledStartDate"
8386
:placeholder="$t('placeholder.quota.tariff.startdate')"
@@ -89,6 +92,7 @@
8992
<tooltip-label :title="$t('label.end.date')" :tooltip="apiParams.enddate.description"/>
9093
</template>
9194
<a-date-picker
95+
class="full-width-input"
9296
v-model:value="form.endDate"
9397
:disabled-date="disabledEndDate"
9498
:placeholder="$t('placeholder.quota.tariff.enddate')"

ui/src/views/plugins/quota/EditQuotaTariff.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<tooltip-label :title="$t('label.quota.tariff.value')" :tooltip="apiParams.value.description"/>
3939
</template>
4040
<a-input-number
41+
class="full-width-input"
4142
v-model:value="form.value"
4243
:placeholder="$t('placeholder.quota.tariff.value')" />
4344
</a-form-item>
@@ -46,14 +47,16 @@
4647
<tooltip-label :title="$t('label.quota.tariff.position')" :tooltip="apiParams.position.description"/>
4748
</template>
4849
<a-input-number
49-
v-model:value="form.position"
50-
:placeholder="$t('placeholder.quota.tariff.position')" />
50+
class="full-width-input"
51+
v-model:value="form.position"
52+
:placeholder="$t('placeholder.quota.tariff.position')" />
5153
</a-form-item>
5254
<a-form-item ref="endDate" name="endDate">
5355
<template #label>
5456
<tooltip-label :title="$t('label.end.date')" :tooltip="apiParams.enddate.description"/>
5557
</template>
5658
<a-date-picker
59+
class="full-width-input"
5760
v-model:value="form.endDate"
5861
:disabled-date="disabledEndDate"
5962
:placeholder="$t('placeholder.quota.tariff.enddate')"

0 commit comments

Comments
 (0)