mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
improved text field styling
This commit is contained in:
@@ -15,7 +15,7 @@ import { Input } from "@/components/ui/input";
|
||||
import { SelectTrigger } from "@/components/ui/select";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
import { issue } from "@/lib/server";
|
||||
import { issueID } from "@/lib/utils";
|
||||
import { cn, issueID } from "@/lib/utils";
|
||||
import SmallSprintDisplay from "./small-sprint-display";
|
||||
import { SprintSelect } from "./sprint-select";
|
||||
import { IconButton } from "./ui/icon-button";
|
||||
@@ -366,7 +366,11 @@ export function IssueDetailPane({
|
||||
}
|
||||
}}
|
||||
disabled={isSavingTitle}
|
||||
className="w-full border-transparent hover:border-input focus:border-input h-auto py-0.5"
|
||||
className={cn(
|
||||
"w-full border-0 border-b-1 border-b-input/50",
|
||||
"hover:border-b-input focus:border-b-input h-auto",
|
||||
)}
|
||||
inputClassName={cn("bg-background px-1.5 font-600")}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -387,7 +391,7 @@ export function IssueDetailPane({
|
||||
}}
|
||||
placeholder="Add a description..."
|
||||
disabled={isSavingDescription}
|
||||
className="text-sm border-transparent hover:border-input focus:border-input resize-none"
|
||||
className="text-sm border-input/50 hover:border-input focus:border-input resize-none !bg-background"
|
||||
/>
|
||||
) : (
|
||||
<Button
|
||||
|
||||
@@ -7,8 +7,13 @@ function Input({
|
||||
type,
|
||||
showCounter = true,
|
||||
showHashPrefix = false,
|
||||
inputClassName,
|
||||
...props
|
||||
}: React.ComponentProps<"input"> & { showCounter?: boolean; showHashPrefix?: boolean }) {
|
||||
}: React.ComponentProps<"input"> & {
|
||||
showCounter?: boolean;
|
||||
showHashPrefix?: boolean;
|
||||
inputClassName?: string;
|
||||
}) {
|
||||
const maxLength = typeof props.maxLength === "number" ? props.maxLength : undefined;
|
||||
const currentLength = typeof props.value === "string" ? props.value.length : undefined;
|
||||
|
||||
@@ -37,6 +42,7 @@ function Input({
|
||||
"file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
||||
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
||||
showHashPrefix ? "pl-2 py-0" : "pl-3",
|
||||
inputClassName,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user