From 47a93504727bc22387ea477fea2c5bb29b7dafee Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 23 Jul 2024 16:23:14 +0200 Subject: [PATCH] fix(Accordion): truncate buttons Resolves #1909 --- src/runtime/ui.config/elements/accordion.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/runtime/ui.config/elements/accordion.ts b/src/runtime/ui.config/elements/accordion.ts index 1891160b3d..5454f90760 100644 --- a/src/runtime/ui.config/elements/accordion.ts +++ b/src/runtime/ui.config/elements/accordion.ts @@ -6,7 +6,7 @@ export default { size: 'text-sm', color: 'text-gray-500 dark:text-gray-400', padding: 'pt-1.5 pb-3', - icon: 'ms-auto transform transition-transform duration-200' + icon: 'ms-auto transform transition-transform duration-200 flex-shrink-0' }, transition: { enterActiveClass: 'overflow-hidden transition-[height] duration-200 ease-out', @@ -16,6 +16,7 @@ export default { openIcon: 'i-heroicons-chevron-down-20-solid', closeIcon: '', class: 'mb-1.5 w-full', - variant: 'soft' as const + variant: 'soft' as const, + truncate: true } }