From 2429bcf5a7df718c056c122d9392d3d5b3eefd0c Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 5 Apr 2023 13:01:16 +0200 Subject: [PATCH] chore(SelectCustom): right padding only when selected --- src/runtime/presets/default.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/presets/default.ts b/src/runtime/presets/default.ts index 507bd0c6..46f068eb 100644 --- a/src/runtime/presets/default.ts +++ b/src/runtime/presets/default.ts @@ -224,12 +224,12 @@ export default function defaultPreset (variantColors: string[]) { base: 'u-bg-white shadow-lg rounded-md ring-1 u-ring-gray-200 focus:outline-none overflow-y-auto py-1 max-h-60', input: 'relative block w-full focus:ring-transparent text-sm px-4 py-2 u-text-gray-700 border-l-0 u-bg-white border-t-0 border-r-0 u-border-gray-200 focus:u-border-gray-200', option: { - base: 'cursor-default select-none relative py-2 pl-4 pr-10 text-sm group', + base: 'cursor-default select-none relative py-2 text-sm group', container: 'flex items-center gap-3', active: 'text-white bg-primary-600', inactive: 'u-text-gray-900', - selected: 'font-semibold', - unselected: 'font-normal', + selected: 'font-semibold pl-4 pr-10', + unselected: 'font-normal px-4', disabled: 'cursor-not-allowed opacity-50', empty: 'text-sm u-text-gray-400 px-4 py-2', icon: {