# HG changeset patch # User bsw # Date 1330452830 -3600 # Node ID 56c13151d0b8f08789f5caedfb13fcb610beb89f # Parent 65561f115d26bcb907270ecd6e5b5d3190121710 Let delegation drop down box looks more nice diff -r 65561f115d26 -r 56c13151d0b8 app/main/delegation/_show_box.lua --- a/app/main/delegation/_show_box.lua Tue Feb 28 19:02:15 2012 +0100 +++ b/app/main/delegation/_show_box.lua Tue Feb 28 19:13:50 2012 +0100 @@ -214,7 +214,7 @@ for i, record in ipairs(delegation_chain) do local style - local overridden = record.overridden + local overridden = (not issue or issue.state ~= 'voting') and record.overridden if record.scope_in then ui.container{ attr = { class = "delegation_info" }, @@ -222,12 +222,12 @@ if not overridden then ui.image{ attr = { class = "delegation_arrow" }, - static = "delegation_arrow_vertical.jpg" + static = "delegation_arrow_24_vertical.png" } else ui.image{ attr = { class = "delegation_arrow delegation_arrow_overridden" }, - static = "delegation_arrow_vertical.jpg" + static = "delegation_arrow_24_vertical.png" } end ui.container{ @@ -255,7 +255,7 @@ } end } - if record.participation and not record.overridden then + if (not issue or issue.state ~= 'voting') and record.participation and not record.overridden then ui.container{ attr = { class = "delegation_participation" }, content = function() diff -r 65561f115d26 -r 56c13151d0b8 static/style.css --- a/static/style.css Tue Feb 28 19:02:15 2012 +0100 +++ b/static/style.css Tue Feb 28 19:13:50 2012 +0100 @@ -462,7 +462,7 @@ border-radius: 0 5px 5px 5px; padding: 1em; width: 35em; - border: 1px solid #fff; + border: 1px solid #5f6675; border-top: none; } @@ -1363,7 +1363,8 @@ .help, .use_terms, .motd, -.ui_filter a.active { +.ui_filter a.active, +.vote_info .content { box-shadow: #777 0px 5px 5px -5px; -mox-box-shadow: #777 0px 5px 5px -5px; -webkit-box-shadow: #777 0px 5px 5px -5px;