Skip to content

Commit

Permalink
number fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter102 authored and xyven1 committed Oct 5, 2023
1 parent df64f42 commit 3e96935
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/NumberChip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
v-if="outer != inner" size="x-large" variant="flat" :min-width="0" :height="height" class="number-chip-btn"
color="secondary" @click="sub(outer)"
>
<v-icon :icon="mdiMinus" />{{ outer === 1 ? "" : outer }}
<v-icon :icon="mdiMinus" />{{ outer }}
</v-btn>
<v-btn
<!-- <v-btn
variant="tonal" size="x-large" color="secondary" :min-width="0" :height="height" class="number-chip-btn"
@click="sub(inner)"
>
<v-icon :icon="mdiMinus" />{{ inner === 1 ? "" : inner }}
</v-btn>
</v-btn> -->
<v-text-field
variant="plain" type="number" class="no-arrows text-h5 mb-2" :model-value="modelValue" :min="min"
:max="max" hide-details density="compact" :step="inner" @update:model-value="(n) => {
Expand All @@ -38,7 +38,7 @@
v-if="outer != inner" size="x-large" :min-width="0" :height="height" class="number-chip-btn" variant="flat"
color="secondary" @click="add(outer)"
>
<v-icon :icon="mdiPlus" /> {{ outer === 1 ? "" : outer }}
<v-icon :icon="mdiPlus" /> {{ outer }}
</v-btn>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/TakeData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<v-spacer />
<number-chip
v-model="currentData[type]" :inner="5" :outer="1" :min="0" :max="500" :height="48"
:min-width="240" :width="240" style="margin-top: 1px; margin-bottom: 1px;"
:min-width="200" :width="200" style="margin-top: 1px; margin-bottom: 1px;"
/>
</v-col>
<v-divider v-if="i != Object.entries(NumberDataTypes).length - 1" />
Expand Down

0 comments on commit 3e96935

Please sign in to comment.