mediawiki-skins-MinervaNeue/includes/skins/userNotifications.mustache
Stephen Niedzielski 0867ff03aa [fix] [notifications] fix icon width
When notifications are present, the wrong icon width was used. Set the
icon width and remove a useless class, main-header-button.

https://codesearch.wmflabs.org/search/?q=main-header-button&i=nope&files=&repos=

Change-Id: Ie274ffcc93cf576f36eb0fccee80ecd3d4ac3a21
2019-08-02 14:39:04 -06:00

19 lines
597 B
Plaintext

{{^hasNotifications}}
<a href="{{url}}" title="{{title}}"
class="{{notificationIconClass}} user-button" id="user-notifications">
{{title}}
</a>
{{/hasNotifications}}
{{#hasNotifications}}
<a href="{{url}}" title="{{title}}"
id="user-notifications"
class="notification-count user-button {{#hasUnseenNotifications}}notification-unseen{{/hasUnseenNotifications}}
{{#isNotificationCountZero}}zero{{/isNotificationCountZero}}">
<div class="circle">
<span data-notification-count="{{notificationCountRaw}}">
{{notificationCountString}}
</span>
</div>
</a>
{{/hasNotifications}}