]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
CSS class tweak for inline attachment thumbnails to avoid things thinking they're...
authorBrion Vibber <brion@pobox.com>
Wed, 10 Nov 2010 22:31:55 +0000 (14:31 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 10 Nov 2010 22:31:55 +0000 (14:31 -0800)
lib/inlineattachmentlist.php

index 8b1a1cd9bb30b40be4e82923a6aa1d2c19048f16..de5008e87babb796e2ebd8d92b6066e453de901f 100644 (file)
@@ -71,6 +71,17 @@ class InlineAttachmentListItem extends AttachmentListItem
         $this->out->elementEnd('a');
     }
 
+    /**
+     * Build HTML attributes for the link
+     * @return array
+     */
+    function linkAttr()
+    {
+        $attr = parent::linkAttr();
+        $attr['class'] = 'attachment-thumbnail';
+        return $attr;
+    }
+
     /**
      * start a single notice.
      *