Merge "Hide xwiki widget separator when widget is expanded"

This commit is contained in:
jenkins-bot 2016-09-02 19:56:22 +00:00 committed by Gerrit Code Review
commit 4ca6513039
2 changed files with 7 additions and 1 deletions

View file

@ -44,6 +44,10 @@
bottom: 0.4em;
width: 100%;
border-bottom: 1px #eeeeee solid;
.mw-echo-ui-crossWikiNotificationItemWidget-expanded & {
display: none;
}
}
&-group {

View file

@ -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();