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
2 changes: 1 addition & 1 deletion web/src/app/admin/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import type { RoleKey } from "@server/data/roles";
import { BarChart2, ShieldCheck, UserPlus, Users } from "lucide-react";
import { BarChart2, ShieldCheck, UserPlus } from "lucide-react";
import type { Route } from "next";
import Link from "next/link";
import { AuthGuard } from "@/components/auth/auth-guard";
Expand Down
6 changes: 3 additions & 3 deletions web/src/app/knowledge/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ function KnowledgePage() {
if (!open) resetCreateItemForm();
}}
title="New Item"
className="max-w-2xl"
className="flex h-[80vh] max-w-2xl flex-col"
footer={
<>
<Button
Expand All @@ -732,7 +732,7 @@ function KnowledgePage() {
</>
}
>
<div className="space-y-3">
<div className="flex flex-1 flex-col gap-3 min-h-0">
<Input
placeholder="Title"
value={newItemTitle}
Expand All @@ -750,7 +750,7 @@ function KnowledgePage() {
placeholder="Body (optional)"
value={newItemBody}
onChange={(e) => setNewItemBody(e.target.value)}
className="min-h-32"
className="flex-1 min-h-0 resize-none overflow-y-auto"
disabled={isBusy}
/>
<div className="space-y-1">
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
data-slot="input"
className={cn(
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none 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",
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
"focus-visible:ring-2 focus-visible:ring-[var(--color-ring)]",
"aria-invalid:border-destructive",
className,
)}
{...props}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/ui/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
<textarea
data-slot="textarea"
className={cn(
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
"border-input placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-[var(--color-ring)] aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
className,
)}
{...props}
Expand Down
Loading