Skip to content

Commit 698e3b3

Browse files
committed
fix: improve versions modal input alignment
1 parent 7d69561 commit 698e3b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/components/Input/Base.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ defineExpose({
3535
v-bind="props.noCorrect ? noCorrect : undefined"
3636
@focus="emit('focus', $event)"
3737
@blur="emit('blur', $event)"
38-
class="appearance-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)"
38+
class="appearance-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-80 cursor-not-allowed)"
3939
:class="{
4040
'text-xs leading-[1.2] px-2 py-2 rounded-md': size === 'small',
4141
'text-sm leading-none px-3 py-2.5 rounded-lg': size === 'medium',

app/components/Package/VersionDistribution.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,13 @@ const endDate = computed(() => {
326326
:aria-busy="pending ? 'true' : 'false'"
327327
>
328328
<div class="w-full mb-4 flex flex-col gap-3">
329-
<div class="flex flex-col sm:flex-row gap-3 sm:gap-2 sm:items-end">
329+
<div class="flex flex-col sm:flex-row gap-3 sm:gap-2 sm:items-start">
330330
<div class="flex flex-col gap-1 w-fit sm:shrink-0">
331331
<label class="text-3xs font-mono text-fg-subtle tracking-wide uppercase">
332332
{{ $t('package.versions.distribution_title') }}
333333
</label>
334334
<div
335-
class="flex items-center bg-bg-subtle border border-border rounded-md"
335+
class="flex items-center bg-bg-subtle border border-border rounded-lg"
336336
role="group"
337337
:aria-label="$t('package.versions.distribution_title')"
338338
tabindex="0"
@@ -341,7 +341,7 @@ const endDate = computed(() => {
341341
<button
342342
type="button"
343343
:class="[
344-
'px-4 py-1.75 font-mono text-sm transition-colors rounded-s-md',
344+
'px-4 py-2.3 font-mono text-sm transition-colors rounded-s-lg',
345345
groupingMode === 'major'
346346
? 'bg-accent text-bg font-medium'
347347
: 'text-fg-subtle hover:text-fg hover:bg-bg-subtle/50',
@@ -356,7 +356,7 @@ const endDate = computed(() => {
356356
<button
357357
type="button"
358358
:class="[
359-
'px-4 py-1.75 font-mono text-sm transition-colors rounded-e-md border-is border-border',
359+
'px-4 py-2.3 font-mono text-sm transition-colors rounded-e-lg border-is border-border',
360360
groupingMode === 'minor'
361361
? 'bg-accent text-bg font-medium'
362362
: 'text-fg-subtle hover:text-fg hover:bg-bg-subtle/50',

0 commit comments

Comments
 (0)