Hide scroll bar on editor
This commit is contained in:
@@ -19,17 +19,13 @@
|
||||
</button>
|
||||
<button
|
||||
class="inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2 text-gray-600 dark:text-gray-400"
|
||||
data-id="21"><span class="sr-only" data-id="22">Bulleted List</span><svg xmlns="http://www.w3.org/2000/svg"
|
||||
width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round" class="w-4 h-4" data-id="23" data-darkreader-inline-stroke=""
|
||||
style="--darkreader-inline-stroke: currentColor;">
|
||||
<line x1="8" x2="21" y1="6" y2="6"></line>
|
||||
<line x1="8" x2="21" y1="12" y2="12"></line>
|
||||
<line x1="8" x2="21" y1="18" y2="18"></line>
|
||||
<line x1="3" x2="3.01" y1="6" y2="6"></line>
|
||||
<line x1="3" x2="3.01" y1="12" y2="12"></line>
|
||||
<line x1="3" x2="3.01" y1="18" y2="18"></line>
|
||||
</svg></button><button
|
||||
data-id="21"><span class="sr-only" data-id="22">Bulleted List</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
|
||||
class="w-6 h-6">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
||||
</svg>
|
||||
|
||||
</button><button
|
||||
class="inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2 text-gray-600 dark:text-gray-400"
|
||||
data-id="24"><span class="sr-only" data-id="25">Add Link</span><svg xmlns="http://www.w3.org/2000/svg"
|
||||
width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
@@ -40,7 +36,7 @@
|
||||
</svg></button>
|
||||
</div>
|
||||
|
||||
<div id="editor" class="relative rounded-lg shadow-lg p-4 mb-4" style="height: 300px;">{{ script }}
|
||||
<div id="editor" class="relative rounded-lg shadow-lg p-4 mb-4">{{ script }}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -51,6 +47,9 @@
|
||||
|
||||
<script>
|
||||
var editor = ace.edit("editor");
|
||||
editor.setOptions({
|
||||
maxLines: editor.session.getLength()
|
||||
});
|
||||
editor.setTheme("ace/theme/github_dark");
|
||||
editor.session.setMode("ace/mode/javascript");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user