forked from GNUsocial/gnu-social
Inline attachment layout improvement
This commit is contained in:
parent
9018fd75c6
commit
33a85ae945
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user