mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +00:00
Merge "Hide xwiki widget separator when widget is expanded"
This commit is contained in:
commit
4ca6513039
|
@ -44,6 +44,10 @@
|
|||
bottom: 0.4em;
|
||||
width: 100%;
|
||||
border-bottom: 1px #eeeeee solid;
|
||||
|
||||
.mw-echo-ui-crossWikiNotificationItemWidget-expanded & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-group {
|
||||
|
|
|
@ -315,7 +315,9 @@
|
|||
mw.echo.ui.CrossWikiNotificationItemWidget.prototype.toggleExpanded = function ( show ) {
|
||||
this.expanded = show !== undefined ? !!show : !this.expanded;
|
||||
|
||||
if ( show ) {
|
||||
this.$element.toggleClass( 'mw-echo-ui-crossWikiNotificationItemWidget-expanded', this.expanded );
|
||||
|
||||
if ( this.expanded ) {
|
||||
this.getList().$element.slideDown();
|
||||
} else {
|
||||
this.getList().$element.slideUp();
|
||||
|
|
Loading…
Reference in a new issue