Skip to content

Commit 2eb2621

Browse files
committed
implemented proper url formatting in settingsinput fields
1 parent e2ed877 commit 2eb2621

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/asset/asset-form/AssetFormVulnsManagement.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ const PublicUrlsSection: FunctionComponent<{
578578
className={copyable ? "text-foreground" : "text-muted-foreground"}
579579
>
580580
<InputWithButton
581+
className="truncate"
581582
label={url.label}
582583
copyable={copyable && !!url.value}
583584
copyToastDescription={url.copyToastDescription}

src/components/ui/input-with-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ const InputWithButton = (props: InputWithButtonProps) => {
5959
variant === "onCard" ? "bg-background" : "bg-card",
6060
)}
6161
>
62-
<div className="flex flex-row justify-between w-full">
62+
<div className="flex flex-row justify-between w-full gap-1">
6363
<input
6464
{...inputProps}
6565
value={props.value ?? ""}
66-
className={classNames("w-full bg-transparent focus:outline-none")}
66+
className={classNames(`w-full bg-transparent focus:outline-none ${inputProps.className}`)}
6767
readOnly={!mutable || !inputProps.onChange}
6868
name={"input" + nameKey}
6969
/>

0 commit comments

Comments
 (0)