Skip to content

Commit 6c0365b

Browse files
committed
Merge pull request needim#225 from akoskm/bootstrap-theme-fix
fix animation glitch with bootstrap theme
2 parents f9281ac + 73c31b8 commit 6c0365b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

js/noty/themes/bootstrap.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
this.$closeButton.append('<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>');
2424
this.$closeButton.addClass('close');
2525

26-
this.$bar.addClass( "list-group-item" );
26+
this.$bar.addClass( "list-group-item" ).css('padding', '0px');
2727

2828
switch (this.options.type) {
2929
case 'alert': case 'notification':
@@ -42,6 +42,15 @@
4242
this.$bar.addClass( "list-group-item-success" );
4343
break;
4444
}
45+
46+
this.$message.css({
47+
fontSize: '13px',
48+
lineHeight: '16px',
49+
textAlign: 'center',
50+
padding: '8px 10px 9px',
51+
width: 'auto',
52+
position: 'relative'
53+
});
4554
},
4655
callback: {
4756
onShow: function() { },

0 commit comments

Comments
 (0)