From 2f2e48dce4a97498c6db9120e2198ffa5215c2d9 Mon Sep 17 00:00:00 2001 From: Munawwirul Jamal Date: Sun, 12 Oct 2025 11:34:27 +0700 Subject: [PATCH 1/2] dev: hotfix, combobox test-size --- app/components/pub/my-ui/combobox/combobox.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/pub/my-ui/combobox/combobox.vue b/app/components/pub/my-ui/combobox/combobox.vue index fbb241e0..f89b6918 100644 --- a/app/components/pub/my-ui/combobox/combobox.vue +++ b/app/components/pub/my-ui/combobox/combobox.vue @@ -69,7 +69,7 @@ function onSelect(item: Item) { :aria-describedby="`${props.id}-search`" :class=" cn( - 'w-full justify-between border text-sm font-normal rounded-md px-3 py-2 focus:outline-none focus:ring-1 focus:ring-black dark:focus:ring-white', + 'w-full justify-between border md:text-xs 2xl:text-sm font-normal rounded-md px-3 py-2 focus:outline-none focus:ring-1 focus:ring-black dark:focus:ring-white', { 'cursor-not-allowed bg-gray-100 opacity-50 border-gray-300 text-gray-500': props.isDisabled, 'bg-white text-black dark:bg-gray-800 dark:text-white dark:border-gray-600 border-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700': !props.isDisabled, @@ -112,7 +112,7 @@ function onSelect(item: Item) { :value="item.searchValue" :class=" cn( - 'flex w-full cursor-pointer items-center justify-between rounded-sm px-2 py-1.5 text-sm', + 'flex w-full cursor-pointer items-center justify-between rounded-sm px-2 py-1.5 md:text-xs xl:text-sm', 'focus:outline-none text-black dark:text-white', 'hover:bg-primary hover:text-white focus:bg-primary focus:text-white', 'data-[highlighted]:bg-primary data-[highlighted]:text-white', From 0d1e469ece38471ed5496f0d424473cac643461b Mon Sep 17 00:00:00 2001 From: Munawwirul Jamal Date: Sun, 12 Oct 2025 11:40:53 +0700 Subject: [PATCH 2/2] dev: hotfix, text-size standardization --- app/components/pub/ui/button/index.ts | 4 ++-- app/components/pub/ui/checkbox/Checkbox.vue | 2 +- app/components/pub/ui/form/FormDescription.vue | 2 +- app/components/pub/ui/label/Label.vue | 2 +- app/components/pub/ui/table/Table.vue | 2 +- app/components/pub/ui/table/TableCaption.vue | 2 +- app/components/pub/ui/table/TableEmpty.vue | 2 +- app/components/pub/ui/tabs/TabsTrigger.vue | 2 +- app/components/pub/ui/textarea/Textarea.vue | 2 +- app/components/pub/ui/toast/ToastAction.vue | 2 +- app/components/pub/ui/toast/ToastDescription.vue | 2 +- app/components/pub/ui/toast/ToastTitle.vue | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/components/pub/ui/button/index.ts b/app/components/pub/ui/button/index.ts index c16fb713..34b82cf6 100644 --- a/app/components/pub/ui/button/index.ts +++ b/app/components/pub/ui/button/index.ts @@ -4,7 +4,7 @@ import { cva } from 'class-variance-authority' export { default as Button } from './Button.vue' export const buttonVariants = cva( - 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md md:tex-xs xl:text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', + 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md md:tex-xs 2xl:text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', { variants: { variant: { @@ -19,7 +19,7 @@ export const buttonVariants = cva( link: 'text-primary underline-offset-4 hover:underline', }, size: { - default: 'md:h8 xl:h-9 px-4 py-2', + default: 'md:h8 2xl:h-9 px-4 py-2', xs: 'h-7 rounded px-2', sm: 'h-8 rounded-md px-3 text-xs', lg: 'h-10 rounded-md px-8', diff --git a/app/components/pub/ui/checkbox/Checkbox.vue b/app/components/pub/ui/checkbox/Checkbox.vue index f8b25c7a..1e01933d 100644 --- a/app/components/pub/ui/checkbox/Checkbox.vue +++ b/app/components/pub/ui/checkbox/Checkbox.vue @@ -21,7 +21,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits) diff --git a/app/components/pub/ui/form/FormDescription.vue b/app/components/pub/ui/form/FormDescription.vue index 60bc8767..b8508491 100644 --- a/app/components/pub/ui/form/FormDescription.vue +++ b/app/components/pub/ui/form/FormDescription.vue @@ -14,7 +14,7 @@ const { formDescriptionId } = useFormField()