mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
don't expand the deck browser more than necessary
This commit is contained in:
parent
b3093ad336
commit
3e1cc2f65d
1 changed files with 5 additions and 4 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue