From ee10d401bf5e9fc42ea9b1b750ba60af45108fea Mon Sep 17 00:00:00 2001 From: Junior Date: Sun, 13 Apr 2025 14:31:52 -0400 Subject: [PATCH] Increase font size in toasts and make toast contents more consistent with title and body. --- core/toastr.css | 5 ++++- js/comics.js | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/core/toastr.css b/core/toastr.css index 107ec01..65f7ecb 100644 --- a/core/toastr.css +++ b/core/toastr.css @@ -1,5 +1,7 @@ .toast-title { font-weight: bold; + margin-bottom: 15px; + text-decoration: underline; } .toast-message { word-wrap: break-word; @@ -98,7 +100,7 @@ button.toast-close-button { overflow: hidden; margin: 0 0 6px; padding: 15px 15px 15px 50px; - width: 300px; + width: 500px; border-radius: 3px 3px 3px 3px; background-position: 15px center; background-repeat: no-repeat; @@ -106,6 +108,7 @@ button.toast-close-button { color: #FFFFFF; opacity: 1.0; filter: opacity(100%); + font-size: 20px; } #toast-container > div.rtl { direction: rtl; diff --git a/js/comics.js b/js/comics.js index 260b2df..dc4c799 100644 --- a/js/comics.js +++ b/js/comics.js @@ -30,7 +30,7 @@ function getFolderContents() { }); $(".folder").click(function() { changeFolder($(this).data("name"), $(this).data("path")); }); $(".issue").click(function() { $(this).parent().addClass("readborder"); showComic($(this).data("relcomic"), $(this).data("comname")); }); - toastr.remove(); + //toastr.remove(); } }); } @@ -47,7 +47,7 @@ function updatePathNavigator() { function changeFolder(name, path) { if ( path == curpath ) return; - toastr.success("Opening comic \"" + name + "\"
If this is the first time it may take a while to generate thumbnails."); + toastr.success("If this is the first time it may take a while to generate thumbnails.", "Opening comic \"" + name + "\""); $.ajax({ url : 'ajax/setpath.php', data : {path: path}, @@ -84,7 +84,7 @@ function updateCurrentPage() { // If not in debug mode a lightbox object is created to display the comic. // function showComic(comic, name) { - toastr.success("Extracting and showing the comic \"" + name + "\"...", "Showing Comic"); + toastr.success("Extracting comic and opening viewer...", "Showing: " + name); $.ajax({ url : 'ajax/showcomic.php', data : {comic: comic},