From 95700dbe3e65e32c45df379f67849b80dc7911c6 Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Fri, 14 Jul 2023 01:46:23 +0900 Subject: [PATCH] desktop safari chat resize handhold. mind the gap --- public/scripts/power-user.js | 4 ++-- public/style.css | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index 972c183a2..95d4544b5 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -1102,7 +1102,7 @@ function doRandomChat() { } async function doMesCut(_, text) { - + console.debug(`was asked to cut message id #${text}`) //reject invalid args or no args if (text && isNaN(text) || !text) { toastr.error(`Must enter a single number only, non-number characters disallowed.`) @@ -1110,7 +1110,7 @@ async function doMesCut(_, text) { } //reject attempts to delete firstmes - if (text === 0) { + if (text === '0') { toastr.error('Cannot delete the First Message') return } diff --git a/public/style.css b/public/style.css index 96a2a38c5..f6d8c00a9 100644 --- a/public/style.css +++ b/public/style.css @@ -454,6 +454,13 @@ hr { z-index: 30; } +/* special case for desktop Safari to allow #sheld resizing */ +@media only screen and (min-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (pointer: fine) { + #form_sheld { + margin-bottom: 5px; + } +} + #send_form { display: flex; flex-wrap: wrap;