From b2608f5ea4ff4e4e81b2324e15e397667cc3ee43 Mon Sep 17 00:00:00 2001 From: Aaron Harsh Date: Sun, 5 Feb 2012 13:31:34 -0800 Subject: [PATCH] All draggable rows now have transparent border bottom, to prevent deck names from fidgeting during drag/drop --- aqt/deckbrowser.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/aqt/deckbrowser.py b/aqt/deckbrowser.py index 4b6271439..5d2fcd81a 100644 --- a/aqt/deckbrowser.py +++ b/aqt/deckbrowser.py @@ -48,16 +48,19 @@ class DeckBrowser(object): # HTML generation ########################################################################## + _dragIndicatorBorderWidth = "1px" + _css = """ tr { font-size: 12px; } a.deck { color: #000; text-decoration: none; } a.deck:hover { text-decoration: underline; } -tr.deck td { border-bottom: thick solid transparent; } +tr.deck td { border-bottom: %(width)s solid transparent; } +tr.top-level-drag-row td { border-bottom: %(width)s solid transparent; } td.opts { white-space: nowrap; } -tr.drag-hover td { border-bottom: 1px solid #aaa; } -.extra { font-size: 90%; } +tr.drag-hover td { border-bottom: %(width)s solid #aaa; } +.extra { font-size: 90%%; } body { margin: 1em; -webkit-user-select: none; } -""" +""" % dict(width=_dragIndicatorBorderWidth) _body = """