Fix aside height in Sticky Feed extension
See https://github.com/FreshRSS/FreshRSS/issues/753
This commit is contained in:
parent
8c1546ca66
commit
3626296e17
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ var sticky_feeds = {
|
||||||
// scroll top has not reached the top of the sticky tree yet so it
|
// scroll top has not reached the top of the sticky tree yet so it
|
||||||
// stays in place but its height must adapted:
|
// stays in place but its height must adapted:
|
||||||
// window height - sticky tree pos top + actual scroll top
|
// window height - sticky tree pos top + actual scroll top
|
||||||
var real_tree_pos_top = sticky_feeds.aside.initial_pos.top - sticky_feeds.tree.initial_pos.top;
|
var real_tree_pos_top = sticky_feeds.aside.initial_pos.top + sticky_feeds.tree.initial_pos.top;
|
||||||
sticky_feeds.tree.css('top', sticky_feeds.tree.initial_pos.top);
|
sticky_feeds.tree.css('top', sticky_feeds.tree.initial_pos.top);
|
||||||
sticky_feeds.tree.css('height', sticky_feeds.window.height - real_tree_pos_top + pos_top_window);
|
sticky_feeds.tree.css('height', sticky_feeds.window.height - real_tree_pos_top + pos_top_window);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width: 840px) {
|
@media(max-width: 840px) {
|
||||||
/* No effect on mobile */
|
/* No effect on mobile. And yep, under 840px it is a mobile... a big one. */
|
||||||
#aside_feed.sticky .tree {
|
#aside_feed.sticky .tree {
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue