Skip to content

Commit 864c695

Browse files
authored
Merge pull request #87 from rtCamp/fix/autocomplete
Fix: Autocomplete width
2 parents 0a098fb + b2692d6 commit 864c695

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

packages/frappe-ui-react/src/components/autoComplete/autoComplete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const Autocomplete: React.FC<AutocompleteProps> = ({
295295
);
296296

297297
return (
298-
<div style={{ width: "100px" }}>
298+
<div className="min-w-24 w-full">
299299
<Combobox
300300
value={selectedComboboxValue}
301301
onChange={handleComboboxChange}

packages/frappe-ui-react/src/components/formControl/formControl.stories.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,13 @@ export const Autocomplete: Story = {
156156
render: (args) => {
157157
const [value, setValue] = useState("");
158158
return (
159-
<FormControl
160-
{...args}
161-
value={value}
162-
onChange={(_value: string) => setValue(_value)}
163-
/>
159+
<div className="w-40">
160+
<FormControl
161+
{...args}
162+
value={value}
163+
onChange={(_value: string) => setValue(_value)}
164+
/>
165+
</div>
164166
);
165167
},
166168
};

0 commit comments

Comments
 (0)