+
-
-
- {extraAction}
-
+ {!compact ?
{extraAction}
: null}
);
}
diff --git a/web/src/components/prompts/prompt-select-dialog.tsx b/web/src/components/prompts/prompt-select-dialog.tsx
index bfb583b..7559233 100644
--- a/web/src/components/prompts/prompt-select-dialog.tsx
+++ b/web/src/components/prompts/prompt-select-dialog.tsx
@@ -1,4 +1,4 @@
-import { Check, Search } from "lucide-react";
+import { Search } from "lucide-react";
import { type UIEvent, useEffect, useState } from "react";
import { App, Empty, Input, Modal, Spin, Tag } from "antd";
import { useTranslation } from "react-i18next";
@@ -34,54 +34,50 @@ export function PromptSelectDialog({ open, onOpenChange, onSelect }: { open: boo
};
return (
-
onOpenChange(false)} footer={null} width={1040} centered>
- event.stopPropagation()}>
-
- } value={keyword} onChange={(event) => setKeyword(event.target.value)} placeholder={t("prompts.searchTitle")} />
-
-
-
-
{t("prompts.category")}
-
- {promptCategories.map((category) => (
- setSelectedCategory(category)}>
- {category === ALL_PROMPTS_OPTION ? t("common.all") : category}
-
- ))}
-
-
-
-
{t("prompts.tags")}
-
- {promptTags.map((tag) => {
- const active = tag === ALL_PROMPTS_OPTION ? selectedTags.length === 0 : selectedTags.includes(tag);
- return (
- toggleTag(tag)}>
- {tag === ALL_PROMPTS_OPTION ? t("common.all") : tag}
-
- );
- })}
-
-
-
-
event.stopPropagation()}>
- {query.isLoading ? (
-
-
-
- ) : null}
-
- {items.map((item) => (
-
selectPrompt(item.prompt)} onCopy={() => selectPrompt(item.prompt)} actionLabel={t("prompts.use")} actionIcon={} actionType="primary" />
+ onOpenChange(false)} footer={null} width={880} centered>
+ event.stopPropagation()}>
+
);
diff --git a/web/src/pages/prompts/index.tsx b/web/src/pages/prompts/index.tsx
index 5ec3c93..5e0b8f5 100644
--- a/web/src/pages/prompts/index.tsx
+++ b/web/src/pages/prompts/index.tsx
@@ -65,7 +65,7 @@ export default function PromptsPage() {
@@ -83,5 +83,5 @@ function PromptFilter({ label, options, selected, onChange }: { label: string; o
}
function PromptGrid({ items, onOpen, onCopy, renderActions, emptyText }: { items: Prompt[]; onOpen: (item: Prompt) => void; onCopy: (item: Prompt) => void; renderActions: (item: Prompt) => ReactNode; emptyText: string }) {
- return
{items.map((item) =>
onOpen(item)} onCopy={() => onCopy(item)} extraAction={renderActions(item)} />)}{items.length === 0 ?
: null}
;
+ return
{items.map((item) =>
onOpen(item)} onCopy={() => onCopy(item)} extraAction={renderActions(item)} />)}{items.length === 0 ?
: null}
;
}