Skip to content

Commit

Permalink
fix(input): text number center text
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Sep 30, 2021
1 parent 1bd5f1c commit 52e05b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/material/TextNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/>
</svg>
</HeroIcon>
<input ref="inp" v-model="cmp" type="number" class="w-8 bg-transparent" />
<input ref="inp" v-model="cmp" type="number" class="w-6 bg-transparent" />
<HeroIcon
class="
bg-gray-200
Expand Down
1 change: 1 addition & 0 deletions src/preset.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ input[type='number']::-webkit-inner-spin-button {

input[type='number'] {
-moz-appearance: textfield;
text-align:center;
}

:root {
Expand Down

0 comments on commit 52e05b1

Please sign in to comment.