diff --git a/boards/templatetags/text_filters.py b/boards/templatetags/text_filters.py index 2f3b383..dc3343d 100755 --- a/boards/templatetags/text_filters.py +++ b/boards/templatetags/text_filters.py @@ -26,6 +26,17 @@ def nl2br(text): return text +@register.filter(is_safe=True) +def nl2p(text): + """ + Wraps \n into
+ """ + if not text: + return "" + text = "" + text.strip().replace("\n", "
") + "
" + return text + + @register.filter def cool_number(value, num_decimals=1): """ diff --git a/static/css/components.css b/static/css/components.css index d1cc853..68973d8 100644 --- a/static/css/components.css +++ b/static/css/components.css @@ -78,6 +78,7 @@ .landing-board-name { display: block; font-size: 160%; + line-height: 115%; margin: 10px 0 5px; font-weight: bold; } @@ -288,13 +289,14 @@ .article-tooltip-title { display: block; font-weight: bold; + font-size: 105%; } .article-tooltip-description { display: block; font-weight: normal; - font-size: 70%; - margin-top: 10px; + margin: 0; + font-size: 80%; overflow: hidden; } diff --git a/templates/board.html b/templates/board.html index 43291a6..16cf006 100644 --- a/templates/board.html +++ b/templates/board.html @@ -74,19 +74,19 @@