From de9596bfc4d5be01269c7656c063a95139734dc6 Mon Sep 17 00:00:00 2001 From: Sylvain Marroufin Date: Mon, 10 Oct 2022 15:44:39 +0200 Subject: [PATCH] chore(Tooltip): update preset for truncate (#90) --- src/runtime/presets/default.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/presets/default.ts b/src/runtime/presets/default.ts index bd7a5e4e..bec25e5b 100644 --- a/src/runtime/presets/default.ts +++ b/src/runtime/presets/default.ts @@ -478,8 +478,8 @@ export default (variantColors: string[]) => { const tooltip = { wrapper: 'relative inline-flex', container: 'z-20', - width: '', - base: 'flex items-center justify-center invisible w-auto h-6 max-w-xs px-2 space-x-1 truncate rounded shadow lg:visible u-bg-gray-800 truncate u-text-gray-50 text-xs', + width: 'max-w-xs', + base: 'invisible w-auto h-6 px-2 py-1 space-x-1 truncate rounded shadow lg:visible u-bg-gray-800 truncate u-text-gray-50 text-xs', transition: { enterActiveClass: 'transition ease-out duration-200', enterFromClass: 'opacity-0 translate-y-1',