fix(files): replace input fields with `NcTextField`

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
julia.kirschenheuter 2024-04-19 18:19:03 +02:00 committed by Richard Steinmetz
parent 6ea485f3fc
commit 31dd0e9bc4
No known key found for this signature in database
GPG Key ID: 27137D9E7D273FB2
4 changed files with 39 additions and 22 deletions

View File

@ -163,8 +163,7 @@
display: flex;
align-items: center;
.multiselect,
input[type=number] {
.multiselect {
min-width: 100px;
width: 25%;
}

View File

@ -2,6 +2,7 @@
- @copyright Copyright (c) 2019 Georg Ehrke <oc.list@georgehrke.com>
-
- @author Georg Ehrke <oc.list@georgehrke.com>
- @author Richard Steinmetz <richard@steinmetz.cloud>
-
- @license AGPL-3.0-or-later
-
@ -22,17 +23,16 @@
<template>
<div class="repeat-option-set repeat-option-set--interval-freq">
<span class="repeat-option-set__label">
{{ repeatEveryLabel }}
</span>
<input v-if="!isIntervalDisabled"
class="intervalInput"
<NcTextField v-if="!isIntervalDisabled"
:label="repeatEveryLabel"
type="number"
class="repeat-option-set__interval"
min="1"
max="366"
:value="interval"
@input="changeInterval">
<RepeatFreqSelect :freq="frequency"
@input="changeInterval" />
<RepeatFreqSelect class="repeat-option-set__frequency"
:freq="frequency"
:count="interval"
@change="changeFrequency" />
</div>
@ -40,11 +40,13 @@
<script>
import RepeatFreqSelect from './RepeatFreqSelect.vue'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
export default {
name: 'RepeatFreqInterval',
components: {
RepeatFreqSelect,
NcTextField,
},
props: {
frequency: {
@ -89,3 +91,16 @@ export default {
},
}
</script>
<style lang="scss" scoped>
.repeat-option-set {
&__interval {
margin: 0 5px 0 0;
}
&__frequency {
min-width: unset !important;
padding-top: 7px;
}
}
</style>

View File

@ -250,9 +250,3 @@ export default {
},
}
</script>
<style lang="scss" scoped>
.resource-search__multiselect {
padding-bottom: 5px !important;
}
</style>

View File

@ -22,19 +22,22 @@
<template>
<div class="resource-capacity">
<div class="resource-capacity__input">
<input type="number"
min="0"
:placeholder="placeholder"
:value="value"
@input.prevent.stop="changeValue">
</div>
<NcTextField :label="placeholder"
type="number"
min="0"
:placeholder="placeholder"
:value="value"
@input="changeValue" />
</div>
</template>
<script>
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
export default {
name: 'ResourceSeatingCapacity',
components: {
NcTextField,
},
props: {
value: {
type: Number,
@ -53,3 +56,9 @@ export default {
},
}
</script>
<style lang="scss" scoped>
.resource-capacity {
padding-bottom: 2px;
}
</style>