Skip to content

Commit 62def3e

Browse files
committed
feat: fix base-input sizes for scaling
1 parent e6758cc commit 62def3e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

app/components/Header/SearchBox.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ defineExpose({ focus })
116116
class="w-full min-w-25 ps-7"
117117
@focus="isSearchFocused = true"
118118
@blur="isSearchFocused = false"
119+
size="small"
119120
/>
120121
<button type="submit" class="sr-only">{{ $t('search.button') }}</button>
121122
</div>

app/components/Input/Base.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ defineExpose({
4242
v-bind="props.noCorrect ? noCorrect : undefined"
4343
@focus="emit('focus', $event)"
4444
@blur="emit('blur', $event)"
45-
class="leading-none bg-bg-subtle border border-border font-mono text-fg placeholder:text-fg-subtle transition-[border-color,outline-color] duration-300 hover:border-fg-subtle outline-2 outline-transparent outline-offset-2 focus:border-accent focus-visible:outline-accent/70 disabled:(opacity-50 cursor-not-allowed)"
45+
class="bg-bg-subtle border border-border font-mono text-fg placeholder:text-fg-subtle transition-[border-color,outline-color] duration-300 hover:border-fg-subtle outline-2 outline-transparent outline-offset-2 focus:border-accent focus-visible:outline-accent/70 disabled:(opacity-50 cursor-not-allowed)"
4646
:class="{
47-
'text-xs px-2 py-1.25 h-8 rounded-md': size === 'small',
48-
'text-sm px-3 py-2.5 h-10 rounded-lg': size === 'medium',
49-
'text-base px-6 py-3.5 h-14 rounded-xl': size === 'large',
47+
'text-xs leading-[1.2] px-2 py-2 rounded-md': size === 'small',
48+
'text-sm leading-none px-3 py-2.5 rounded-lg': size === 'medium',
49+
'text-base leading-none px-6 py-3.5 h-14 rounded-xl': size === 'large',
5050
}"
5151
:disabled="
5252
/** Catching Vue render-bug of invalid `disabled=false` attribute in the final HTML */

0 commit comments

Comments
 (0)