Inline attachment layout improvement

This commit is contained in:
Mikael Nordfeldth 2014-08-04 18:33:57 +02:00
parent 9018fd75c6
commit 33a85ae945
2 changed files with 10 additions and 13 deletions

View 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;
}
/**

View 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;