From 78c0a99b72744923855875b5768e81df53f7fded Mon Sep 17 00:00:00 2001 From: "Max W." Date: Fri, 11 Apr 2025 01:24:53 +0200 Subject: [PATCH] Update index.js --- public/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/index.js b/public/index.js index 14e7ff7..f2409a1 100644 --- a/public/index.js +++ b/public/index.js @@ -85,6 +85,7 @@ $(document).ready(function() { // Load paste on page load async function loadPasteFromUrl() { + $viewer.text("Loading..."); const urlParams = new URLSearchParams(window.location.search); const pasteId = urlParams.get('id'); @@ -93,6 +94,7 @@ $(document).ready(function() { const response = await fetch(`/api/pastes/${pasteId}`); if (response.ok) { + $('pre').css('width', '100%'); // Set pre width const content = await response.text(); $editor.val(content); updateLineNumbers();