From 3f4844f6f6ed24b2aa75299b177d14a60b3472f8 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Mon, 17 Jan 2022 20:46:33 +0100 Subject: [PATCH] Add numbered lines to example notification to make adjusting scroll speed easier --- .../Notification/FormNotificationExample.cs | 5 --- .../Content/notification/example/example.html | 31 ++++++++++++++++++- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/Browser/Notification/FormNotificationExample.cs b/Browser/Notification/FormNotificationExample.cs index 0951ba3f..b41a7937 100644 --- a/Browser/Notification/FormNotificationExample.cs +++ b/Browser/Notification/FormNotificationExample.cs @@ -39,11 +39,6 @@ protected override FormBorderStyle NotificationBorderStyle { }; string exampleTweetHTML = ResourceUtils.ReadFileOrNull("notification/example/example.html") ?? string.Empty; - - #if DEBUG - exampleTweetHTML = exampleTweetHTML.Replace("</p>", @"</p><div style='margin-top:256px'>Scrollbar test padding...</div>"); - #endif - exampleNotification = new DesktopNotification(string.Empty, string.Empty, "Home", exampleTweetHTML, 176, string.Empty, string.Empty); } diff --git a/Resources/Content/notification/example/example.html b/Resources/Content/notification/example/example.html index 222df81f..ac662944 100644 --- a/Resources/Content/notification/example/example.html +++ b/Resources/Content/notification/example/example.html @@ -18,7 +18,36 @@ </a> </header> <div class="tweet-body"> - <p class="js-tweet-text tweet-text with-linebreaks">Here you can see the position and appearance of desktop notifications.<br><br>For location and size, you can pick a preset, or select <strong>Custom</strong> and then freely move or resize the window.</p> + <p class="js-tweet-text tweet-text"> + Here you can see the position and appearance of desktop notifications.<br><br> + For location and size, you can pick a preset, or select <strong>Custom</strong> and then freely move or resize the window.<br><br> + You can use the numbered lines below to test and adjust scroll speed:<br><br> + 01<br> + 02<br> + 03<br> + 04<br> + 05<br> + 06<br> + 07<br> + 08<br> + 09<br> + 10<br> + 11<br> + 12<br> + 13<br> + 14<br> + 15<br> + 16<br> + 17<br> + 18<br> + 19<br> + 20<br> + 21<br> + 22<br> + 23<br> + 24<br> + 25 + </p> </div> </div> </div>