-
-
System Message Prefix
-
+
+
+ First User Prefix
+
+
+
+ Last User Prefix
+
+
-
-
System Message Suffix
-
+
+
+ System Instruction Prefix
+
+
+
+ Stop Sequence
+
+
-
-
-
-
-
-
- Misc. Sequences
-
-
-
-
First Assistant Prefix
-
+
+
+ User Filler Message
+
+
-
- Last Assistant Prefix
-
-
-
-
-
- First User Prefix
-
-
-
- Last User Prefix
-
-
-
-
-
- System Instruction Prefix
-
-
-
- Stop Sequence
-
-
-
-
-
- User Filler Message
-
-
-
+
diff --git a/public/scripts/instruct-mode.js b/public/scripts/instruct-mode.js
index 30badcc31..033f5c3e8 100644
--- a/public/scripts/instruct-mode.js
+++ b/public/scripts/instruct-mode.js
@@ -682,4 +682,12 @@ jQuery(() => {
selectMatchingContextTemplate(name);
}
});
+
+ if (!CSS.supports('field-sizing', 'content')) {
+ $('#InstructSequencesColumn details').on('toggle', function () {
+ if ($(this).prop('open')) {
+ resetScrollHeight($(this).find('textarea'));
+ }
+ });
+ }
});
diff --git a/public/style.css b/public/style.css
index a7fb7d5cd..8cfd7e508 100644
--- a/public/style.css
+++ b/public/style.css
@@ -5469,3 +5469,12 @@ body:not(.movingUI) .drawer-content.maximized {
#AdvancedFormatting .autoSetHeight {
overflow-wrap: anywhere;
}
+
+#InstructSequencesColumn summary {
+ font-size: 0.95em;
+ cursor: pointer;
+}
+
+#InstructSequencesColumn details:not(:last-of-type) {
+ margin-bottom: 5px;
+}