Commit ab2212fd authored by yPhil's avatar yPhil
Browse files

Yet another feed body sizing strategy, feeds sized at startup

parent 2f8dddcb
Pipeline #394669 passed with stage
in 1 minute and 18 seconds
......@@ -775,6 +775,7 @@ button.ui-state-success {
.feed-header > .feed-handle,
.dialog .help-bookmarklet {
cursor: -webkit-grab;
cursor: grab;
}
......@@ -1188,6 +1189,7 @@ table {
}
li.feed div.feed-body {
will-change: contents;
border-bottom: 1px solid var(--color-bg2);
border-left: 1px solid var(--color-bg1);
border-right: 1px solid var(--color-bg1);
......
......@@ -97,7 +97,7 @@ PTL.feed = {
.attr('title', PTL.tr('Move this feed (%1)', url))
.attr('class', 'feed-handle');
var $feedBody = $('<div>').attr('class', 'feed-body'),
var $feedBody = $('<div>').attr('class', 'feed-body').css('height', limit),
$feedBodyUl = $('<ul>').attr('class', 'feed-body'),
$header = $('<div>').attr('class', 'feed-header'),
$feedToggle = $('<div>').attr('class', 'feed-toggle').append($feedIcon),
......@@ -276,6 +276,8 @@ PTL.feed = {
$feedIcon.addClass('icon-rss');
$feedToggle.css('background-image', 'none');
$feedBody.css('height', '');
return;
} else {
......@@ -420,7 +422,7 @@ PTL.feed = {
audioPlayer.controls = 'controls';
audioPlayer.src = item.enclosures[0].url;
audioPlayer.type = item.enclosures[0].type;
audioPlayer.preload = 'metadata';
// audioPlayer.preload = 'metadata';
$itemDiv.append(audioPlayer);
......@@ -499,8 +501,6 @@ PTL.feed = {
});
$feedBody.animate({height: feedLimit});
}).always(function() {
$refreshButton.prop('title', PTL.tr('Refresh this feed (%1 - %2)', feedUrl, timeStamp));
......
......@@ -22,6 +22,7 @@ PTL.prefs = (function() {
{"url":"http://explainxkcd.com/rss.xml","type":"photo","limit": 60,"status":"on"}
],
[
{"url":"http://faif.us/feeds/cast-ogg/","type":"text","limit": 250,"status":"on"},
{"url":"https://www.yellowtrace.com.au/category/architecture/feed/","type":"photo","limit": 200,"status":"off"},
{"url":"https://www.ignant.com/category/architecture/feed/","type":"photo","limit": 300,"status":"on"}
]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment