]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
visual tweaks for convo view
authorBrion Vibber <brion@pobox.com>
Mon, 28 Feb 2011 20:20:47 +0000 (12:20 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 28 Feb 2011 20:20:47 +0000 (12:20 -0800)
lib/noticelist.php
lib/threadednoticelist.php
theme/base/css/display.css

index 7b2fbb1e7cad51a7fb22b164c25a72496587c4b6..8c07f904c88ab0b2ce735c5208533ca7de8c2973 100644 (file)
@@ -329,7 +329,7 @@ class NoticeListItem extends Widget
 
     function showAvatar()
     {
-       $avatar_size = AVATAR_STREAM_SIZE;
+        $avatar_size = $this->avatarSize();
 
         $avatar = $this->profile->getAvatar($avatar_size);
 
@@ -345,6 +345,11 @@ class NoticeListItem extends Widget
                                          $this->profile->nickname));
     }
 
+    function avatarSize()
+    {
+        return AVATAR_STREAM_SIZE;
+    }
+
     /**
      * show the nickname of the author
      *
index 3a6e5e76c4d89473134da9b1717bf0c8312cf6ab..933a051f38e606d531353818b2d41584776947cb 100644 (file)
@@ -168,10 +168,8 @@ class ThreadedNoticeListItem extends NoticeListItem
         if ($notices) {
             $this->out->elementStart('ul', 'notices threaded-notices xoxo');
             foreach (array_reverse($notices) as $notice) {
-                $this->out->elementStart('li');
-                $item = new NoticeListItem($notice, $this->out);
+                $item = new ThreadedNoticeListSubItem($notice, $this->out);
                 $item->show();
-                $this->out->elementEnd('li');
             }
             $this->out->elementEnd('ul');
         }
@@ -179,3 +177,22 @@ class ThreadedNoticeListItem extends NoticeListItem
         parent::showEnd();
     }
 }
+
+class ThreadedNoticeListSubItem extends NoticeListItem
+{
+
+    function avatarSize()
+    {
+        return AVATAR_STREAM_SIZE; // @fixme would like something in between
+    }
+
+    function showNoticeLocation()
+    {
+        //
+    }
+
+    function showNoticeSource()
+    {
+        //
+    }
+}
\ No newline at end of file
index 383b9c6ec261adf536864733e7125fa7ccf26d9f..817de209baf4ac37df345e960869a5ad577253aa 100644 (file)
@@ -1109,6 +1109,18 @@ border-top-width:1px;
 border-top-style:solid;
 }
 
+/* Threaded notices sublist */
+#content .notices .threaded-notices {
+    margin-left: 10%;
+    width: 90%;
+
+    background: #e4e8f1;
+}
+#content .threaded-notices .notice .author .photo {
+    left: 8px;
+    width: 32px;
+    height: 32px;
+}
 /* NOTICES */
 #notices_primary {
 float:left;