From db5f07f1644a207c77aa24134de4c25a4c7d71b0 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 14 May 2020 01:08:42 +0200 Subject: [PATCH] v0.4.1 --- copyparty/__version__.py | 4 ++-- copyparty/web/md2.css | 6 +++++- copyparty/web/md2.js | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 6932a444..b2c99f1b 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,8 +1,8 @@ # coding: utf-8 -VERSION = (0, 4, 0) +VERSION = (0, 4, 1) CODENAME = "NIH" -BUILD_DT = (2020, 5, 13) +BUILD_DT = (2020, 5, 14) S_VERSION = ".".join(map(str, VERSION)) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) diff --git a/copyparty/web/md2.css b/copyparty/web/md2.css index 67fcc6be..2b72140b 100644 --- a/copyparty/web/md2.css +++ b/copyparty/web/md2.css @@ -28,11 +28,13 @@ } #mtw.single, #mw.single { - left: calc((100% - 58em) / 2); margin: 0; + left: 1em; + left: max(1em, calc((100% - 58em) / 2)); } #mtw.single { width: 57em; + width: min(57em, calc(100% - 2em)); } @@ -57,11 +59,13 @@ line-height: 1.3em; font-size: .9em; position: relative; + scrollbar-color: #eb0 #f7f7f7; } html.dark #mt { color: #eee; background: #222; border: 1px solid #777; + scrollbar-color: #b80 #282828; } #mtr { position: absolute; diff --git a/copyparty/web/md2.js b/copyparty/web/md2.js index f9abe6d1..fa98344e 100644 --- a/copyparty/web/md2.js +++ b/copyparty/web/md2.js @@ -85,7 +85,7 @@ var draw_md = (function () { cls(document.getElementById('save'), 'disabled', src == server_md); var t1 = new Date().getTime(); - delay = t1 - t0; + delay = t1 - t0 > 150 ? 25 : 1; } var timeout = null;