diff --git a/r2/r2/public/static/css/reddit.less b/r2/r2/public/static/css/reddit.less index 941bef1e3..669b6cfc3 100755 --- a/r2/r2/public/static/css/reddit.less +++ b/r2/r2/public/static/css/reddit.less @@ -957,6 +957,15 @@ a.author { margin-right: 0.5em; } overflow: hidden; position: relative; min-height: 50px; + + &.loading { + height: 62px; + opacity: .5; + + & .help, & .throbber { + display: none; + } + } } .organic-listing .link { diff --git a/r2/r2/public/static/js/spotlight.js b/r2/r2/public/static/js/spotlight.js index 551ba7a32..1b49570a5 100644 --- a/r2/r2/public/static/js/spotlight.js +++ b/r2/r2/public/static/js/spotlight.js @@ -136,6 +136,7 @@ r.spotlight._advance = function(dir) { } $nextprev.removeClass('working') + listing.removeClass('loading') // size the rank element so that spotlight box // items line up with the main page listing diff --git a/r2/r2/templates/spotlightlisting.html b/r2/r2/templates/spotlightlisting.html index 313719a5c..492476bdf 100644 --- a/r2/r2/templates/spotlightlisting.html +++ b/r2/r2/templates/spotlightlisting.html @@ -28,7 +28,7 @@ from r2.lib.wrapped import Templated %> -
+
%if thing.things: %for link in thing.things: ${unsafe(link.render(display=False))}