From 67ed1ec77e2d9c3a9486d0734294a8541dc4334a Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 24 Jun 2014 15:34:36 +0200 Subject: [PATCH] Repeated and Favorited CSS/mf2 fixes For some reason I'd added an 'e-content' class for repeats and faves --- lib/threadednoticelist.php | 10 +++++----- theme/base/css/display.css | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/threadednoticelist.php b/lib/threadednoticelist.php index de714e0ab7..3e89cf3a19 100644 --- a/lib/threadednoticelist.php +++ b/lib/threadednoticelist.php @@ -443,9 +443,9 @@ abstract class NoticeListActorsItem extends NoticeListItem array_unshift($links, _m('FAVELIST', 'You')); } else { $profile = Profile::getKV('id', $id); - if ($profile) { - $links[] = sprintf('%s', - htmlspecialchars($profile->profileurl), + if ($profile instanceof Profile) { + $links[] = sprintf('%s', + htmlspecialchars($profile->getUrl()), htmlspecialchars($profile->getBestName())); } } @@ -548,7 +548,7 @@ class ThreadedNoticeListInlineFavesItem extends ThreadedNoticeListFavesItem { function showStart() { - $this->out->elementStart('div', array('class' => 'e-content notice-faves')); + $this->out->elementStart('div', array('class' => 'notice-faves')); } function showEnd() @@ -625,7 +625,7 @@ class ThreadedNoticeListInlineRepeatsItem extends ThreadedNoticeListRepeatsItem { function showStart() { - $this->out->elementStart('div', array('class' => 'e-content notice-repeats')); + $this->out->elementStart('div', array('class' => 'notice-repeats')); } function showEnd() diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 40c4c56ad7..89f47941de 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -902,8 +902,10 @@ content: ":"; margin-left: 32px; } -#content .notice .threaded-replies .notice div.e-content.notice-faves { +.threaded-replies .notice-repeats, +.threaded-replies .notice-faves { clear: both; + font-size: 0.88em; } .threaded-replies li { -- 2.39.5