mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-27 00:51:16 +01:00
better styling for snackbar on mobile
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
position:fixed;
|
||||
left:20px;
|
||||
bottom:0;
|
||||
z-index:99999
|
||||
z-index:99999;
|
||||
|
||||
strong {
|
||||
margin-right: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.snackbar {
|
||||
@@ -23,7 +27,11 @@
|
||||
#snackbar-container {
|
||||
left:0!important;
|
||||
right:0;
|
||||
width:100%
|
||||
width:100%;
|
||||
|
||||
strong {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
#snackbar-container .snackbar {
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
function launchSnackbar(params) {
|
||||
var bar = $.snackbar({
|
||||
content: "<strong>" + params.title + "</strong> " + params.message,
|
||||
content: "<strong>" + params.title + "</strong>" + params.message,
|
||||
timeout: 3000,
|
||||
htmlAllowed: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user