From 118b92f6b63a839fb080c80b0a90226aecc3d304 Mon Sep 17 00:00:00 2001 From: fenwick67 Date: Sat, 4 Apr 2020 13:21:47 -0400 Subject: [PATCH] fix some visual bugs * dates were wrapping with CWs * sometimes the author's name wasn't showing up * CWs were spaced weird with the author block --- lib/convertv2.js | 2 +- static/auto.css | 12 ++++++++---- static/dark.css | 6 ++++-- static/light.css | 6 ++++-- stylesrc/base.scss | 2 ++ 5 files changed, 19 insertions(+), 9 deletions(-) diff --git a/lib/convertv2.js b/lib/convertv2.js index 35f0699..e97a1a6 100644 --- a/lib/convertv2.js +++ b/lib/convertv2.js @@ -195,7 +195,7 @@ async function itemsForFeed(opts,user,feed) { author:{ uri:op.url,// link to author page avatar:op.icon&&op.icon.url?op.icon.url:'', - displayName:op.name, + displayName:op.name || op.preferredUsername, fullName:op.preferredUsername+'@'+(new URL(op.url).hostname), } } diff --git a/static/auto.css b/static/auto.css index 3ca8760..e1c71e4 100644 --- a/static/auto.css +++ b/static/auto.css @@ -66,7 +66,8 @@ a * { .date { margin: 1rem 0 0 0; - text-decoration: none; } + text-decoration: none; + display: block; } .date:hover { text-decoration: underline; } @@ -75,7 +76,8 @@ a * { margin-bottom: 0.7rem; } .author { - display: flex; } + display: flex; + margin-bottom: 1rem; } .author-info { margin: 0 1rem; @@ -227,13 +229,15 @@ body { font-size: 0.9rem; } .date { margin: 1rem 0 0 0; - text-decoration: none; } + text-decoration: none; + display: block; } .date:hover { text-decoration: underline; } .item-title { margin-bottom: 0.7rem; } .author { - display: flex; } + display: flex; + margin-bottom: 1rem; } .author-info { margin: 0 1rem; display: flex; diff --git a/static/dark.css b/static/dark.css index fae4104..6097115 100644 --- a/static/dark.css +++ b/static/dark.css @@ -66,7 +66,8 @@ a * { .date { margin: 1rem 0 0 0; - text-decoration: none; } + text-decoration: none; + display: block; } .date:hover { text-decoration: underline; } @@ -75,7 +76,8 @@ a * { margin-bottom: 0.7rem; } .author { - display: flex; } + display: flex; + margin-bottom: 1rem; } .author-info { margin: 0 1rem; diff --git a/static/light.css b/static/light.css index 854d6f1..d2ebe1e 100644 --- a/static/light.css +++ b/static/light.css @@ -66,7 +66,8 @@ a * { .date { margin: 1rem 0 0 0; - text-decoration: none; } + text-decoration: none; + display: block; } .date:hover { text-decoration: underline; } @@ -75,7 +76,8 @@ a * { margin-bottom: 0.7rem; } .author { - display: flex; } + display: flex; + margin-bottom: 1rem; } .author-info { margin: 0 1rem; diff --git a/stylesrc/base.scss b/stylesrc/base.scss index d9ffa7f..c43037b 100644 --- a/stylesrc/base.scss +++ b/stylesrc/base.scss @@ -89,6 +89,7 @@ a * { .date{ margin: 1rem 0 0 0; text-decoration: none; + display:block; } .date:hover{ text-decoration: underline; @@ -99,6 +100,7 @@ a * { .author { display: flex; + margin-bottom: 1rem; } .author-info {