From f2314f24c7b6ca9b9ae3b852a1822174a23ddbd1 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 11 Mar 2019 17:27:17 +1100 Subject: [PATCH] Use png rather than svg for warning image. Concatenate flash messages with commas to reduce page height. Allow warning message to be wider --- onionshare/web/receive_mode.py | 12 +++++++----- share/static/css/style.css | 5 ----- share/static/img/warning.png | Bin 0 -> 804 bytes share/templates/receive.html | 3 +-- 4 files changed, 8 insertions(+), 12 deletions(-) create mode 100644 share/static/img/warning.png diff --git a/onionshare/web/receive_mode.py b/onionshare/web/receive_mode.py index d6ef86ad..25d7aa1b 100644 --- a/onionshare/web/receive_mode.py +++ b/onionshare/web/receive_mode.py @@ -112,12 +112,14 @@ class ReceiveModeWeb(object): else: flash(msg, 'info') else: + msg = 'Sent ' for filename in filenames: - msg = 'Sent {}'.format(filename) - if ajax: - info_flashes.append(msg) - else: - flash(msg, 'info') + msg += '{}, '.format(filename) + msg = msg.rstrip(', ') + if ajax: + info_flashes.append(msg) + else: + flash(msg, 'info') if self.can_upload: if ajax: diff --git a/share/static/css/style.css b/share/static/css/style.css index 987f08f5..e445e5de 100644 --- a/share/static/css/style.css +++ b/share/static/css/style.css @@ -228,7 +228,6 @@ div#noscript { color: #d709df; padding: 1em; line-height: 150%; - max-width: 700px; margin: 0 auto; } @@ -236,10 +235,6 @@ div#noscript a, div#noscript a:visited { color: #d709df; } -div#noscript svg { - max-width: 30px; -} - .disable-noscript-xss-wrapper { max-width: 900px; margin: 0 auto; diff --git a/share/static/img/warning.png b/share/static/img/warning.png new file mode 100644 index 0000000000000000000000000000000000000000..9be8cbaf1a8f5fbbb20c742d51302b22c3eca975 GIT binary patch literal 804 zcmV+<1Ka$GP)ZAngDE0*OgPK~zYIt(8wm6mb;C zKW}!{c2>j`(zH$2#aI=hLb@b`R5vey6hRPCco0t!Q6SXWAiPG_RfFmfQA7kDqAn$b z2iL8|T|?{-WG?9LtnSY1urAcH|J41$!0_IDzn}Mp-!L*;zt~`IX0D6M5YR;R^h-r2 z(r(wi!>et7@|$MOre0H((JBISY7&*vnoV_p+xbmHRj*bYrMw0n19630!0)n_BKZc; zTE_bVWKdw$sWC4)24g7W-3k8~!b}C@7R)!wxm+2!*_CX64m#Nr_pKPpSyR%FB6X2{ zD1Cra0erh)eSav`9twM-1E}!~!G$BOor%t+bjE#2#OYUIu=-$?2>?gsRM2jp4tt{m zV(80kk6>^;@JXO~Ct$NgFTQT?c@ptPd|)o4s9G}c!;XzOmYxLOZ4EHA6L8Uu6()PN zC9$b4m%7b|U%X2P#E_r;+MgCN&ehrOr*pN7$AI4If+hQ!yOSM@J#pWP>DgG@aLagD z!gb)JeCkVz>W;PrkdPJC0`=Lhg#Sok2QtHV3!v6YEd%xCAYBQ+__;W*SZzTaCZ|uT`ZG2>;mmX^~^4z04GuwQwWAkGi^3o{y~9ZVE-

- Fill 1 Created with Sketch. - Warning: Due to a bug in Tor Browser and Firefox, uploads + Warning: Due to a bug in Tor Browser and Firefox, uploads sometimes never finish. To upload reliably, either set your Tor Browser security slider to Standard or