- {workspacePrompts.map((prompt) => renderPromptRow(prompt))}
-
-
-
-
No workspace prompts yet
-
- Create one here or drop a .md file into the{" "}
- {workspacePath ? (
+ {globalPrompts.length > 0 ? (
+
+ {globalPrompts.map((prompt) => renderPromptRow(prompt))}
+
+ ) : (
+
+
+
+
No general prompts yet
+
+ Create one here or drop a .md file into{" "}
- ) : (
-
- workspace prompts folder
-
- )}
- .
+ .
+
-
- )}
-
-
-
-
General prompts
-
+ )}
- {globalPrompts.length > 0 ? (
-
- {globalPrompts.map((prompt) => renderPromptRow(prompt))}
-
- ) : (
-
-
-
-
No general prompts yet
-
- Create one here or drop a .md file into{" "}
-
- .
-
-
-
- )}
);
diff --git a/src/styles/prompts.css b/src/styles/prompts.css
index ec5d46e4e..97fed892f 100644
--- a/src/styles/prompts.css
+++ b/src/styles/prompts.css
@@ -274,6 +274,17 @@
}
}
+.prompt-panel-scroll {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ flex: 1;
+ min-height: 0;
+ overflow-y: auto;
+ padding-right: 2px;
+ padding-bottom: 12px;
+}
+
@media (prefers-reduced-motion: reduce) {
.prompt-row,
.prompt-empty-card,