mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-09 19:15:42 +02:00
added padding to first img child to mark it as thumbnail
This commit is contained in:
parent
9b971c54b0
commit
bfd20019d5
@ -557,6 +557,11 @@ div.add_parentfolder {
|
||||
max-width: 55em;
|
||||
}
|
||||
|
||||
.feed_item div.body img.thumbnail {
|
||||
padding: 0 1em 0 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.feed_item div.body h1, .feed_item div.body h2 {
|
||||
font-size: 1.25em;
|
||||
font-weight: bold;
|
||||
|
@ -409,6 +409,8 @@ var News = News || {};
|
||||
this._read = this._$html.hasClass('read');
|
||||
this._locked = false;
|
||||
this._important = this._$html.find('li.star').hasClass('important');
|
||||
this._$html.children('.body').children('img:first-child').addClass('thumbnail');
|
||||
|
||||
var $stamp = this._$html.find('.timestamp');
|
||||
this._timestamp = parseInt($stamp.html());
|
||||
$stamp.remove();
|
||||
|
Loading…
Reference in New Issue
Block a user