A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
style: set combobox to truncate (#5829)
Shahmir Varqha52d80a970728
diff --git a/frontend/src/components/ui/combobox.tsx b/frontend/src/components/ui/combobox.tsxindex fb9eea8d9f..446b273c2c 100644--- a/frontend/src/components/ui/combobox.tsx+++ b/frontend/src/components/ui/combobox.tsx@@ -175,8 +175,8 @@ export const Combobox = <TValue,>({)}aria-expanded={open}>- {renderValue()}{" "}- <ChevronDownIcon className="ml-3 w-4 h-4 opacity-50" />+ <span className="truncate flex-1 min-w-0">{renderValue()}</span>+ <ChevronDownIcon className="ml-3 w-4 h-4 opacity-50 flex-shrink-0" /></div></PopoverTrigger><PopoverContentdiff --git a/frontend/src/plugins/impl/SearchableSelect.tsx b/frontend/src/plugins/impl/SearchableSelect.tsxindex 175ed443ea..924f92c261 100644--- a/frontend/src/plugins/impl/SearchableSelect.tsx+++ b/frontend/src/plugins/impl/SearchableSelect.tsx@@ -105,7 +105,9 @@ export const SearchableSelect = (props: SearchableSelectProps): JSX.Element => {}}placeholder="Select..."multiple={false}- className={cn("w-full", { "w-full": fullWidth })}+ className={cn({+ "w-full": fullWidth,+ })}value={value ?? NONE_KEY}onValueChange={handleValueChange}shouldFilter={false}diff --git a/frontend/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap b/frontend/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snapindex 824dfe26e9..1132282004 100644--- a/frontend/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap+++ b/frontend/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap@@ -36,10 +36,14 @@ exports[`renderZodSchema > should render a form aggregate 1`] = `data-state="closed"type="button">- Select columns+ <span+ class="truncate flex-1 min-w-0"+ >+ Select columns+ </span><svgaria-hidden="true"- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50"+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"fill="none"height="24"stroke="currentColor"@@ -87,10 +91,14 @@ exports[`renderZodSchema > should render a form aggregate 1`] = `data-state="closed"type="button">- Select aggregations+ <span+ class="truncate flex-1 min-w-0"+ >+ Select aggregations+ </span><svgaria-hidden="true"- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50"+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"fill="none"height="24"stroke="currentColor"@@ -400,10 +408,14 @@ exports[`renderZodSchema > should render a form explode_columns 1`] = `data-state="closed"type="button">- Select columns+ <span+ class="truncate flex-1 min-w-0"+ >+ Select columns+ </span><svgaria-hidden="true"- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50"+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"fill="none"height="24"stroke="currentColor"@@ -591,10 +603,14 @@ exports[`renderZodSchema > should render a form group_by 1`] = `data-state="closed"type="button">- Select columns+ <span+ class="truncate flex-1 min-w-0"+ >+ Select columns+ </span><svgaria-hidden="true"- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50"+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"fill="none"height="24"stroke="currentColor"@@ -1007,10 +1023,14 @@ exports[`renderZodSchema > should render a form select_columns 1`] = `data-state="closed"type="button">- Select columns+ <span+ class="truncate flex-1 min-w-0"+ >+ Select columns+ </span><svgaria-hidden="true"- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50"+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"fill="none"height="24"stroke="currentColor"@@ -1286,10 +1306,14 @@ exports[`renderZodSchema > should render a form unique 1`] = `data-state="closed"type="button">- Select columns+ <span+ class="truncate flex-1 min-w-0"+ >+ Select columns+ </span><svgaria-hidden="true"- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50"+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"fill="none"height="24"stroke="currentColor"@@ -1441,10 +1465,14 @@ exports[`renders custom forms column_id_array 1`] = `data-state="closed"type="button">- Select columns+ <span+ class="truncate flex-1 min-w-0"+ >+ Select columns+ </span><svgaria-hidden="true"- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50"+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"fill="none"height="24"stroke="currentColor"@@ -1487,10 +1515,14 @@ exports[`renders custom forms column_id_dot_array 1`] = `data-state="closed"type="button">- --+ <span+ class="truncate flex-1 min-w-0"+ >+ --+ </span><svgaria-hidden="true"- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50"+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"fill="none"height="24"stroke="currentColor"