Kaldari has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/58441


Change subject: Better limits on number of notifications in the flyout
......................................................................

Better limits on number of notifications in the flyout

Change-Id: Ic53f6ebe530a73ef89204a96b22194a17d034a12
---
M modules/overlay/ext.echo.overlay.js
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/41/58441/1

diff --git a/modules/overlay/ext.echo.overlay.js 
b/modules/overlay/ext.echo.overlay.js
index 3b7d706..6bc512d 100644
--- a/modules/overlay/ext.echo.overlay.js
+++ b/modules/overlay/ext.echo.overlay.js
@@ -34,10 +34,12 @@
                                count = 0;
                        var Api = new mw.Api();
                        // Set notification limit based on height of the window
-                       var notificationLimit = Math.floor( ( $( window 
).height() - 134 ) / 85 );
+                       var notificationLimit = Math.floor( ( $( window 
).height() - 134 ) / 90 );
 
                        if ( notificationLimit < 1 ) {
                                notificationLimit = 1;
+                       } else if ( notificationLimit > 8 ) {
+                               notificationLimit = 8;
                        }
 
                        Api.get( {

-- 
To view, visit https://gerrit.wikimedia.org/r/58441
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic53f6ebe530a73ef89204a96b22194a17d034a12
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to