Merge branch 'feat/env-var-multiline-input' into local
This commit is contained in:
@@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from "react";
|
|||||||
import type { CompanySecret, EnvBinding } from "@paperclipai/shared";
|
import type { CompanySecret, EnvBinding } from "@paperclipai/shared";
|
||||||
import { X } from "lucide-react";
|
import { X } from "lucide-react";
|
||||||
import { cn } from "../lib/utils";
|
import { cn } from "../lib/utils";
|
||||||
|
import { Textarea } from "./ui/textarea";
|
||||||
|
|
||||||
const inputClass =
|
const inputClass =
|
||||||
"w-full rounded-md border border-border px-2.5 py-1.5 bg-transparent outline-none text-sm font-mono placeholder:text-muted-foreground/40";
|
"w-full rounded-md border border-border px-2.5 py-1.5 bg-transparent outline-none text-sm font-mono placeholder:text-muted-foreground/40";
|
||||||
@@ -212,8 +213,14 @@ export function EnvVarEditor({
|
|||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<input
|
<Textarea
|
||||||
className={cn(inputClass, "flex-[3]")}
|
rows={1}
|
||||||
|
className={cn(
|
||||||
|
inputClass,
|
||||||
|
"flex-[3] min-h-0 resize-none shadow-none",
|
||||||
|
"h-8 overflow-hidden field-sizing-fixed",
|
||||||
|
"focus:h-auto focus:overflow-auto focus:field-sizing-content",
|
||||||
|
)}
|
||||||
placeholder="value"
|
placeholder="value"
|
||||||
value={row.plainValue}
|
value={row.plainValue}
|
||||||
onChange={(event) => updateRow(index, { plainValue: event.target.value })}
|
onChange={(event) => updateRow(index, { plainValue: event.target.value })}
|
||||||
|
|||||||
Reference in New Issue
Block a user