diff --git a/src/components/multi-select.tsx b/src/components/multi-select.tsx index 45b0e40..cf3b873 100644 --- a/src/components/multi-select.tsx +++ b/src/components/multi-select.tsx @@ -813,7 +813,7 @@ export const MultiSelect = React.forwardRef( getAllOptions().length } options selected. ${placeholder}`} className={cn( - "flex p-1 rounded-md border min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto", + "flex p-1 rounded-md border min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto ", autoSize ? "w-auto" : "w-full", responsiveSettings.compactMode && "min-h-8 text-sm", screenSize === "mobile" && "min-h-12 text-base", @@ -825,7 +825,7 @@ export const MultiSelect = React.forwardRef( maxWidth: `min(${widthConstraints.maxWidth}, 100%)`, }}> {selectedValues.length > 0 ? ( -
+
( getBadgeAnimationClass(), multiSelectVariants({ variant }), customStyle?.gradient && - "text-white border-transparent", + "text-white border-transparent ", responsiveSettings.compactMode && - "text-xs px-1.5 py-0.5", + "text-xs px-1.5 py-0.5 ", screenSize === "mobile" && - "max-w-[120px] truncate", - singleLine && "flex-shrink-0 whitespace-nowrap", - "[&>svg]:pointer-events-auto" + "!max-w-[120px] truncate ", + singleLine && "flex-shrink-0 whitespace-nowrap ", + "[&>svg]:pointer-events-auto " )} style={{ ...badgeStyle, @@ -897,8 +897,9 @@ export const MultiSelect = React.forwardRef( )} + screenSize === "mobile" && "truncate" , + "max-w-[120px] truncate" + ) }> {option.label}
{ { allRelationships.length > 0 && - + +
{ ))} - +
} { diff --git a/src/features/database/components/db-controller/relationship-controller/relationship-accordion-item/relationship-accordion-trigger.tsx b/src/features/database/components/db-controller/relationship-controller/relationship-accordion-item/relationship-accordion-trigger.tsx index cd63f92..13b9049 100644 --- a/src/features/database/components/db-controller/relationship-controller/relationship-accordion-item/relationship-accordion-trigger.tsx +++ b/src/features/database/components/db-controller/relationship-controller/relationship-accordion-item/relationship-accordion-trigger.tsx @@ -66,13 +66,13 @@ const RelationshipAccordionTrigger: React.FC }, [relationship.name]); return ( - + { !editMode && <> -
+
{ allTables.length > 0 && !showSqlPreview && - + +
{ - +
} { allTables.length > 0 && showSqlPreview && diff --git a/src/features/database/components/db-controller/tables-controller/table-accordion-item/field/field-item.tsx b/src/features/database/components/db-controller/tables-controller/table-accordion-item/field/field-item.tsx index 2fab3a1..b99b68f 100644 --- a/src/features/database/components/db-controller/tables-controller/table-accordion-item/field/field-item.tsx +++ b/src/features/database/components/db-controller/tables-controller/table-accordion-item/field/field-item.tsx @@ -103,13 +103,12 @@ const FieldItem: React.FC = ({ field, dialect }) => { } return ( -
+
-
- +
= ({ index, fields, dialect }) => { return (
-
+
({ value: field.id, label: field.name })) as any diff --git a/src/features/database/components/db-controller/tables-controller/table-accordion-item/table-accordion-trigger.tsx b/src/features/database/components/db-controller/tables-controller/table-accordion-item/table-accordion-trigger.tsx index 0762cca..a191657 100644 --- a/src/features/database/components/db-controller/tables-controller/table-accordion-item/table-accordion-trigger.tsx +++ b/src/features/database/components/db-controller/tables-controller/table-accordion-item/table-accordion-trigger.tsx @@ -108,13 +108,8 @@ const TableAccordionHeader: React.FC = ({ table, isOp const { listeners } = useSortable({ id: table.id }); - - - - return ( - - = ({ table, isOp
} > -
{ !editMode && <> -
+