don't expand the deck browser more than necessary

This commit is contained in:
Damien Elmes 2012-04-23 03:51:02 +09:00
parent b3093ad336
commit 3e1cc2f65d

View file

@ -80,13 +80,13 @@ tr.drag-hover td { border-bottom: %(width)s solid #aaa; }
.extra { font-size: 90%%; } .extra { font-size: 90%%; }
body { margin: 1em; -webkit-user-select: none; } body { margin: 1em; -webkit-user-select: none; }
.current { background-color: #ececec; } .current { background-color: #ececec; }
.decktd { min-width: 15em; }
.count { width: 6em; text-align: right; } .count { width: 6em; text-align: right; }
""" % dict(width=_dragIndicatorBorderWidth) """ % dict(width=_dragIndicatorBorderWidth)
_body = """ _body = """
<center> <center>
<table cellspacing=0 cellpading=3 width=100%%> <table cellspacing=0 cellpading=3>
%(tree)s %(tree)s
</table> </table>
</center> </center>
@ -157,7 +157,8 @@ body { margin: 1em; -webkit-user-select: none; }
klass = 'deck' klass = 'deck'
buf = "<tr class='%s' id='%d'>" % (klass, did) buf = "<tr class='%s' id='%d'>" % (klass, did)
# deck link # deck link
buf += "<td colspan=5>%s<a class=deck href='open:%d'>%s</a></td>"% ( buf += """
<td class=decktd colspan=5>%s<a class=deck href='open:%d'>%s</a></td>"""% (
indent(), did, name) indent(), did, name)
# due counts # due counts
def nonzeroColour(cnt, colour): def nonzeroColour(cnt, colour):