From 7c310e678c81f93a38edb136a1bc0bfc2c9fe4bc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 14 Dec 2011 11:44:29 +0900 Subject: [PATCH] fix deck description --- aqt/overview.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/aqt/overview.py b/aqt/overview.py index 56ef814b4..e8e4cf474 100644 --- a/aqt/overview.py +++ b/aqt/overview.py @@ -69,11 +69,11 @@ class Overview(object): if not desc: return "" if len(desc) < 160: - return '
%s
' % desc + return '
%s
' % desc else: return '''
%s\ -...More
+ ...More
%s
''' % ( desc[:160], desc) @@ -118,6 +118,21 @@ h3 { margin-bottom: 0; } .fin { font-size: 12px; font-weight: normal; } td { font-size: 14px; } button { font-weight: bold; } +.descfont { +font: 12px/18px "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif; +padding: 1em; color: #333; +} +.description { +white-space: pre-wrap; +} +#fulldesc { +display:none; +} +.descmid { +width: 70%; +margin: 0 auto 0; +text-align: left; +} """ # Bottom area