1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

(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.

This commit is contained in:
Jordan Lee 2011-07-21 16:07:56 +00:00
parent 73b5bfbf5d
commit b8eca962d4
2 changed files with 3 additions and 3 deletions

View file

@ -1455,9 +1455,9 @@ Transmission.prototype =
setInnerHTML( tab.secure, private_string ); setInnerHTML( tab.secure, private_string );
setInnerHTML( tab.creator_date, date_created ); setInnerHTML( tab.creator_date, date_created );
setInnerHTML( tab.progress, torrents.length ? fmt.percentString(Math.ratio( sizeDone*100, sizeWhenDone )) + '%' : na ); 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.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 ); setInnerHTML( tab.error, error );
this.updatePeersLists(); this.updatePeersLists();

View file

@ -699,7 +699,7 @@ div#inspector_tabs {
width: 100px; /* this + the next 380 == inspector_container_with */ width: 100px; /* this + the next 380 == inspector_container_with */
} }
.inspector_row > div { .inspector_row > div {
display: table-cell; word-wrap: break-word;
padding-top: 10px; padding-top: 10px;
width: 380px; /* inspector_container_width==480 - inspector_label_width==100 */ width: 380px; /* inspector_container_width==480 - inspector_label_width==100 */
} }