fixed sweet alerts blocking major ui elements (#1517)

This commit is contained in:
Adrian Rudnik
2020-03-06 03:02:30 +01:00
committed by GitHub
parent 9907694ef6
commit 76a6ea57a1
2 changed files with 14 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ export default class KimaiAlert extends KimaiPlugin {
timer: 2000, timer: 2000,
timerProgressBar: true, timerProgressBar: true,
toast: true, toast: true,
position: 'top-end', position: 'top',
showConfirmButton: false, showConfirmButton: false,
icon: 'success', icon: 'success',
title: message, title: message,

View File

@@ -1,3 +1,15 @@
.swal2-popup { .swal2-popup {
font-size: unset; font-size: unset;
} }
.swal2-container {
// never block the top two bars double-bars display (smaller displays)
@media only screen and (max-width: 768px) {
top: 110px !important;
}
// never block the top bar on single-bar display (larger devices)
@media only screen and (min-width: 768px) {
top: 60px !important;
}
}