]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Repeated and Favorited CSS/mf2 fixes
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 24 Jun 2014 13:34:36 +0000 (15:34 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 24 Jun 2014 13:34:36 +0000 (15:34 +0200)
For some reason I'd added an 'e-content' class for repeats and faves

lib/threadednoticelist.php
theme/base/css/display.css

index de714e0ab73bcd42fe3881195ac44cc0f411e76a..3e89cf3a196e10bc73ecd64e26fca93f499f2f53 100644 (file)
@@ -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('<a href="%s">%s</a>',
-                                       htmlspecialchars($profile->profileurl),
+                if ($profile instanceof Profile) {
+                    $links[] = sprintf('<a class="h-card" href="%s">%s</a>',
+                                       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()
index 40c4c56ad7c7e35981feae10e172a5e4c2c372ab..89f47941de545b0a0385e3938d353b1adb936261 100644 (file)
@@ -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 {