) {
if (e.key === "Enter") {
e.preventDefault();
void saveEdit();
diff --git a/src/index.css b/src/index.css
index f36ea66..e626c8f 100644
--- a/src/index.css
+++ b/src/index.css
@@ -11,7 +11,7 @@
--card-foreground: oklch(0.129 0.042 264.695);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.129 0.042 264.695);
- --primary: oklch(0.208 0.042 265.755);
+ --primary: oklch(62.3% 0.214 259.815);
--primary-foreground: oklch(0.984 0.003 247.858);
--secondary: oklch(0.968 0.007 247.896);
--secondary-foreground: oklch(0.208 0.042 265.755);
diff --git a/src/pages/editor.tsx b/src/pages/editor.tsx
index 7efadfd..2ef0d04 100644
--- a/src/pages/editor.tsx
+++ b/src/pages/editor.tsx
@@ -36,6 +36,7 @@ import {
import { useClipboard } from "@/hooks/use-clipboard";
import { toast } from "sonner";
import { Checkbox } from "@/components/ui/checkbox";
+import { Textarea } from "@/components/ui/textarea";
export default function Editor() {
const { id: projectId } = useParams();
@@ -202,17 +203,18 @@ export default function Editor() {
const isEditing = inline.isEditingCell(entry.path, lang);
const isSaving = inline.isSavingCell(entry.path, lang);
const displayValue = inline.getDisplayValue(entry.path, lang);
+
return (
|
{isEditing ? (
- inline.setEditingValue(e.target.value)}
onBlur={inline.saveEdit}
onKeyDown={inline.handleKeyDown}
disabled={isSaving}
- className="h-8"
+ className="leading-8 px-2 py-0"
/>
) : (
)}
|
@@ -369,7 +371,7 @@ export default function Editor() {
{caseSensitive ? "区分大小写" : "忽略大小写"}
-