diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css
index fd1a29552..5c5e27df9 100644
--- a/src/frontend/src/index.css
+++ b/src/frontend/src/index.css
@@ -1084,7 +1084,7 @@ The cursor: default; property value restores the browser's default cursor style
}
.chat-message-highlight {
- @apply my-1 rounded-md bg-indigo-100 dark:bg-indigo-900
+ @apply rounded-md bg-indigo-100 dark:bg-indigo-900
}
diff --git a/src/frontend/src/modals/genericModal/index.tsx b/src/frontend/src/modals/genericModal/index.tsx
index 93590b423..b2cf02fdb 100644
--- a/src/frontend/src/modals/genericModal/index.tsx
+++ b/src/frontend/src/modals/genericModal/index.tsx
@@ -219,39 +219,46 @@ export default function GenericModal({
)}
-
+
{type === TypeModal.PROMPT && (
-
-
-
-
- Input Variables:
-
+
+
+
+
+
+ Prompt Variables:
+
- {wordsHighlight.map((word, index) => (
-
- (
+
-
-
- {word.replace(/[{}]/g, "").length > 59
- ? word.replace(/[{}]/g, "").slice(0, 56) + "..."
- : word.replace(/[{}]/g, "")}
-
-
-
-
- ))}
+
+
+
+ {word.replace(/[{}]/g, "").length > 59
+ ? word.replace(/[{}]/g, "").slice(0, 56) +
+ "..."
+ : word.replace(/[{}]/g, "")}
+
+
+
+
+ ))}
+
+
+ Prompt variables can be created with any chosen name inside
+ curly brackets, e.g. {"{variable_name}"}
+
)}
diff --git a/src/frontend/src/utils.ts b/src/frontend/src/utils.ts
index 4983edc60..5ae191c67 100644
--- a/src/frontend/src/utils.ts
+++ b/src/frontend/src/utils.ts
@@ -1038,10 +1038,6 @@ export const INVALID_CHARACTERS = [
export const regexHighlight = /\{([^}]+)\}/g;
export const varHighlightHTML = ({ name }: IVarHighlightType) => {
- const html = `
- {
- ${name}
- }
-
`;
+ const html = `
{${name}}`;
return html;
};