]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Inline attachment layout improvement
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 4 Aug 2014 16:33:57 +0000 (18:33 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 4 Aug 2014 16:33:57 +0000 (18:33 +0200)
lib/inlineattachmentlist.php
theme/base/css/display.css

index 04fddf3b304b3d35c6b74cf010bda124fca53df1..b68701fb31266f570ead2a3d69603d8cba9baf32 100644 (file)
@@ -59,20 +59,8 @@ class InlineAttachmentList extends AttachmentList
 class InlineAttachmentListItem extends AttachmentListItem
 {
     function showLink() {
-        $this->out->elementStart('a', $this->linkAttr());
+        $this->out->element('a', $this->linkAttr(), $this->title());
         $this->showRepresentation();
-        $this->out->elementEnd('a');
-    }
-
-    /**
-     * Build HTML attributes for the link
-     * @return array
-     */
-    function linkAttr()
-    {
-        $attr = parent::linkAttr();
-        $attr['class'] = 'attachment-thumbnail';
-        return $attr;
     }
 
     /**
index 792501e28905fddae5634cb531229bca7a12dea9..00bf5e5e3d58dd3eacba1098292c9ee2d267be21 100644 (file)
@@ -812,6 +812,15 @@ position:static;
     top: 1em;
 }
 
+.notice.h-entry .attachments .inline-attachment * {
+    max-width: 100%;
+}
+.notice.h-entry .attachments .inline-attachment > a {
+    font-size: 0.88em;
+    line-height: 16px;
+    height: 16px;
+}
+
 #attachments {
 clear:both;
 float:left;