From a61e7656c25b26409cab77178e67d1cb9ec22dbd Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 24 Sep 2024 23:06:02 +0200 Subject: [PATCH] fix(CommandPalette): missing `min-w-0` on root --- src/theme/command-palette.ts | 2 +- .../__snapshots__/CommandPalette.spec.ts.snap | 42 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/theme/command-palette.ts b/src/theme/command-palette.ts index 66f3bed5..6d5dab7e 100644 --- a/src/theme/command-palette.ts +++ b/src/theme/command-palette.ts @@ -2,7 +2,7 @@ import type { ModuleOptions } from '../module' export default (options: Required) => ({ slots: { - root: 'flex flex-col min-h-0 divide-y divide-gray-200 dark:divide-gray-800', + root: 'flex flex-col min-h-0 min-w-0 divide-y divide-gray-200 dark:divide-gray-800', input: '[&>input]:h-12', close: '', content: 'relative overflow-hidden', diff --git a/test/components/__snapshots__/CommandPalette.spec.ts.snap b/test/components/__snapshots__/CommandPalette.spec.ts.snap index 70f7ec8c..d5562ef4 100644 --- a/test/components/__snapshots__/CommandPalette.spec.ts.snap +++ b/test/components/__snapshots__/CommandPalette.spec.ts.snap @@ -1,7 +1,7 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`CommandPalette > renders with as correctly 1`] = ` -"
+"
@@ -60,7 +60,7 @@ exports[`CommandPalette > renders with as correctly 1`] = ` `; exports[`CommandPalette > renders with class correctly 1`] = ` -"
+"
@@ -119,7 +119,7 @@ exports[`CommandPalette > renders with class correctly 1`] = ` `; exports[`CommandPalette > renders with close correctly 1`] = ` -"
+"
@@ -179,7 +179,7 @@ exports[`CommandPalette > renders with close correctly 1`] = ` `; exports[`CommandPalette > renders with close slot correctly 1`] = ` -"
+"
Close slot
@@ -236,7 +236,7 @@ exports[`CommandPalette > renders with close slot correctly 1`] = ` `; exports[`CommandPalette > renders with closeIcon correctly 1`] = ` -"
+"
@@ -296,7 +296,7 @@ exports[`CommandPalette > renders with closeIcon correctly 1`] = ` `; exports[`CommandPalette > renders with custom slot correctly 1`] = ` -"
+"
@@ -353,7 +353,7 @@ exports[`CommandPalette > renders with custom slot correctly 1`] = ` `; exports[`CommandPalette > renders with defaultValue correctly 1`] = ` -"
+"
@@ -412,7 +412,7 @@ exports[`CommandPalette > renders with defaultValue correctly 1`] = ` `; exports[`CommandPalette > renders with disabled correctly 1`] = ` -"
+"
@@ -471,7 +471,7 @@ exports[`CommandPalette > renders with disabled correctly 1`] = ` `; exports[`CommandPalette > renders with empty slot correctly 1`] = ` -"
+"
@@ -530,7 +530,7 @@ exports[`CommandPalette > renders with empty slot correctly 1`] = ` `; exports[`CommandPalette > renders with groups correctly 1`] = ` -"
+"
@@ -589,7 +589,7 @@ exports[`CommandPalette > renders with groups correctly 1`] = ` `; exports[`CommandPalette > renders with icon correctly 1`] = ` -"
+"
@@ -648,7 +648,7 @@ exports[`CommandPalette > renders with icon correctly 1`] = ` `; exports[`CommandPalette > renders with item slot correctly 1`] = ` -"
+"
@@ -695,7 +695,7 @@ exports[`CommandPalette > renders with item slot correctly 1`] = ` `; exports[`CommandPalette > renders with item-label slot correctly 1`] = ` -"
+"
@@ -754,7 +754,7 @@ exports[`CommandPalette > renders with item-label slot correctly 1`] = ` `; exports[`CommandPalette > renders with item-leading slot correctly 1`] = ` -"
+"
@@ -807,7 +807,7 @@ exports[`CommandPalette > renders with item-leading slot correctly 1`] = ` `; exports[`CommandPalette > renders with item-trailing slot correctly 1`] = ` -"
+"
@@ -860,7 +860,7 @@ exports[`CommandPalette > renders with item-trailing slot correctly 1`] = ` `; exports[`CommandPalette > renders with loading correctly 1`] = ` -"
+"
@@ -919,7 +919,7 @@ exports[`CommandPalette > renders with loading correctly 1`] = ` `; exports[`CommandPalette > renders with loadingIcon correctly 1`] = ` -"
+"
@@ -946,7 +946,7 @@ exports[`CommandPalette > renders with loadingIcon correctly 1`] = ` `; exports[`CommandPalette > renders with modelValue correctly 1`] = ` -"
+"
@@ -1005,7 +1005,7 @@ exports[`CommandPalette > renders with modelValue correctly 1`] = ` `; exports[`CommandPalette > renders with placeholder correctly 1`] = ` -"
+"
@@ -1064,7 +1064,7 @@ exports[`CommandPalette > renders with placeholder correctly 1`] = ` `; exports[`CommandPalette > renders with selectedIcon correctly 1`] = ` -"
+"
@@ -1123,7 +1123,7 @@ exports[`CommandPalette > renders with selectedIcon correctly 1`] = ` `; exports[`CommandPalette > renders with ui correctly 1`] = ` -"
+"