From b8eca962d41de3fbb143ca0f3c27606ffe3d9e80 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Thu, 21 Jul 2011 16:07:56 +0000 Subject: [PATCH] (trunk web) #1188 "comments and announce address are cut off" -- tell the browser (via word-wrap: break-word;) that it's okay to insert word breaks inside long URLs in the inspector. --- web/javascript/transmission.js | 4 ++-- web/stylesheets/common.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index bec2188d4..a8b5951b5 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -1455,9 +1455,9 @@ Transmission.prototype = setInnerHTML( tab.secure, private_string ); setInnerHTML( tab.creator_date, date_created ); setInnerHTML( tab.progress, torrents.length ? fmt.percentString(Math.ratio( sizeDone*100, sizeWhenDone )) + '%' : na ); - setInnerHTML( tab.comment, comment == na ? comment : comment.replace(/\//g, '/​') ); + setInnerHTML( tab.comment, comment ); setInnerHTML( tab.creator, creator ); - setInnerHTML( tab.download_dir, download_dir == na ? download_dir : download_dir.replace(/([\/_\.])/g, "$1​") ); + setInnerHTML( tab.download_dir, download_dir ); setInnerHTML( tab.error, error ); this.updatePeersLists(); diff --git a/web/stylesheets/common.css b/web/stylesheets/common.css index 044579f67..dfe39f385 100644 --- a/web/stylesheets/common.css +++ b/web/stylesheets/common.css @@ -699,7 +699,7 @@ div#inspector_tabs { width: 100px; /* this + the next 380 == inspector_container_with */ } .inspector_row > div { - display: table-cell; + word-wrap: break-word; padding-top: 10px; width: 380px; /* inspector_container_width==480 - inspector_label_width==100 */ } -- 2.40.0