Skip to content

Commit ac75499

Browse files
Fix CodeMirror layout spacing and update content textarea (#465)
Signed-off-by: Nayana R Gowda <[email protected]>
1 parent 86fbc8f commit ac75499

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

mcpgateway/static/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4340,7 +4340,7 @@ function initializeCodeMirrorEditors() {
43404340
{
43414341
mode: config.mode,
43424342
theme: "monokai",
4343-
lineNumbers: true,
4343+
lineNumbers: false,
43444344
autoCloseBrackets: true,
43454345
matchBrackets: true,
43464346
tabSize: 2,

mcpgateway/templates/admin.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -790,10 +790,10 @@ <h3 class="text-lg font-bold mb-4 dark:text-gray-200">Add New Resource</h3>
790790
<div>
791791
<label class="block text-sm font-medium text-gray-700 dark:text-gray-400">Content</label>
792792
<textarea name="content" id="resource-content-editor"
793-
class="mt-1 block w-full h-48 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500"
794-
style="display: none">
795-
</textarea>
793+
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 dark:bg-gray-900 dark:placeholder-gray-300 dark:text-gray-300"
794+
placeholder=""></textarea>
796795
</div>
796+
797797
<div id="status-resources"></div>
798798
</div>
799799
<div class="mt-6">
@@ -935,9 +935,8 @@ <h3 class="text-lg font-bold mb-4 dark:text-gray-200">Add New Prompt</h3>
935935
<div>
936936
<label class="block text-sm font-medium text-gray-700 dark:text-gray-400">Template</label>
937937
<textarea name="template" id="prompt-template-editor"
938-
class="mt-1 block w-full h-48 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500"
939-
style="display: none">
940-
</textarea>
938+
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 dark:bg-gray-900 dark:placeholder-gray-300 dark:text-gray-300"
939+
placeholder=""></textarea>
941940
</div>
942941
<div>
943942
<label class="block text-sm font-medium text-gray-700 dark:text-gray-400">Arguments (JSON)</label>

0 commit comments

Comments
 (0)