diff --git a/pkgs/clan-app/ui/src/components/Form/Fieldset.stories.tsx b/pkgs/clan-app/ui/src/components/Form/Fieldset.stories.tsx index 4c22b4362..95c968a41 100644 --- a/pkgs/clan-app/ui/src/components/Form/Fieldset.stories.tsx +++ b/pkgs/clan-app/ui/src/components/Form/Fieldset.stories.tsx @@ -9,6 +9,7 @@ import { TextInput } from "@/src/components/Form/TextInput"; import { TextArea } from "@/src/components/Form/TextArea"; import { Checkbox } from "@/src/components/Form/Checkbox"; import { FieldProps } from "./Field"; +import { HostFileInput } from "@/src/components/Form/HostFileInput"; const FieldsetExamples = (props: FieldsetProps) => (
@@ -26,7 +27,7 @@ const meta = {
@@ -63,6 +64,11 @@ export const Default: Story = { label="Bio" input={{ placeholder: "Tell us a bit about yourself", rows: 8 }} /> + "/home/foo/bar/baz/fizz/buzz/bla/bizz"} + /> ), diff --git a/pkgs/clan-app/ui/src/components/Form/HostFileInput.css b/pkgs/clan-app/ui/src/components/Form/HostFileInput.css index 8a736a291..96f454f8d 100644 --- a/pkgs/clan-app/ui/src/components/Form/HostFileInput.css +++ b/pkgs/clan-app/ui/src/components/Form/HostFileInput.css @@ -1,5 +1,11 @@ div.form-field.host-file { button { - @apply w-1/2; + @apply w-fit; + } + + &.horizontal { + button { + @apply grow max-w-[18rem]; + } } } diff --git a/pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx b/pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx index bc9caf636..f5702c420 100644 --- a/pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx +++ b/pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx @@ -47,7 +47,10 @@ export const HostFileInput = (props: HostFileInputProps) => { })} {...props} > - +