]> granicus.if.org Git - transmission/commitdiff
#1125 - If a torrent has 0% completed, the progressbar is 1 pixel long
authorMalcolm Jarvis <malcolm@boolable.ca>
Thu, 14 Aug 2008 01:40:08 +0000 (01:40 +0000)
committerMalcolm Jarvis <malcolm@boolable.ca>
Thu, 14 Aug 2008 01:40:08 +0000 (01:40 +0000)
web/javascript/torrent.js
web/stylesheets/common.css

index 968e1a22e56159e8a077a8aa20ff8375bd46be11..03b90ef4f9ff7300406043fd9b72b194b3d1dce9 100644 (file)
@@ -340,6 +340,7 @@ Torrent.prototype =
                        e.addClass( 'torrent_progress_bar' );
                        e.addClass( class_name );
                        e.css( 'width', css_completed_width + '%' );
+                       if(css_completed_width == 0) { e.addClass( 'empty' ); }
                        
                        // Update the 'incomplete' bar
                        e = root._progress_incomplete_container;
index a65cc4ada1d0c0356807fb596e1021c72b100b11..22944d7af2dee819bc9fc9dfcc9036d05a093fbc 100644 (file)
@@ -439,6 +439,10 @@ ul.torrent_list li.torrent div.torrent_progress_bar.complete_stopped {
        border: 1px solid #939393;
 }
 
+ul.torrent_list li.torrent div.torrent_progress_bar.empty {
+       border-color: #c8cacd;
+}
+
 li.torrent a div {
        float: right;
        position: relative;