Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ const PublicUrlsSection: FunctionComponent<{
className={copyable ? "text-foreground" : "text-muted-foreground"}
>
<InputWithButton
className="truncate"
label={url.label}
copyable={copyable && !!url.value}
copyToastDescription={url.copyToastDescription}
Expand Down
5 changes: 3 additions & 2 deletions src/components/ui/input-with-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const InputWithButton = (props: InputWithButtonProps) => {
variant,
mutable,
nameKey,
className,
...inputProps
} = props;

Expand All @@ -59,11 +60,11 @@ const InputWithButton = (props: InputWithButtonProps) => {
variant === "onCard" ? "bg-background" : "bg-card",
)}
>
<div className="flex flex-row justify-between w-full">
<div className="flex flex-row justify-between w-full gap-1">
<input
{...inputProps}
value={props.value ?? ""}
className={classNames("w-full bg-transparent focus:outline-none")}
className={classNames("w-full bg-transparent focus:outline-none",className)}
readOnly={!mutable || !inputProps.onChange}
name={"input" + nameKey}
/>
Expand Down
Loading