Set notif dismiss default display to flex
This commit is contained in:
parent
95959b60c6
commit
b713b68e31
@ -29,7 +29,7 @@
|
|||||||
.cp-notification-dismiss {
|
.cp-notification-dismiss {
|
||||||
color: black;
|
color: black;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
display: none;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
@ -94,8 +94,6 @@ define([
|
|||||||
// add getters to access simply some informations
|
// add getters to access simply some informations
|
||||||
data.content.isClickable = typeof data.content.handler === "function";
|
data.content.isClickable = typeof data.content.handler === "function";
|
||||||
data.content.isDismissible = typeof data.content.dismissHandler === "function";
|
data.content.isDismissible = typeof data.content.dismissHandler === "function";
|
||||||
} else {
|
|
||||||
// $(el).find('.cp-notification-dismiss').css('display', 'flex'); // XXX
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
remove: function (common, data) {
|
remove: function (common, data) {
|
||||||
|
|||||||
@ -66,7 +66,6 @@ define([
|
|||||||
var dismiss = h('div.cp-notification-dismiss', {
|
var dismiss = h('div.cp-notification-dismiss', {
|
||||||
title: Messages.notifications_dismiss
|
title: Messages.notifications_dismiss
|
||||||
}, dismissIcon);
|
}, dismissIcon);
|
||||||
$(dismiss).css('display', 'flex'); // XXX
|
|
||||||
$(dismiss).addClass("cp-clickable")
|
$(dismiss).addClass("cp-clickable")
|
||||||
.click(data.content.dismissHandler);
|
.click(data.content.dismissHandler);
|
||||||
$(notif).append(dismiss);
|
$(notif).append(dismiss);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user