commit 8658e6de4f23fdeb8bcab9f19981d8de4c51ed32
parent be42ebd0e376b7fc1168b335a834142872a73bd1
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Wed, 25 Dec 2019 22:59:56 +0300
notifications: add scrolling for long messages
* enable scrolling for dialog window
* set scroll position to top
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/lib/notifications/style.css b/src/lib/notifications/style.css
@@ -1,5 +1,6 @@
.alertify {
z-index: 100000 !important;
+ overflow: hidden;
}
.alertify .alert>*, .alertify .dialog>* {
@@ -9,3 +10,18 @@
.alertify .alert .msg, .alertify .dialog .msg {
white-space: pre-line;
}
+
+.alertify .alert, .alertify .dialog {
+ overflow: auto;
+ animation: alertifyMaxHeight 0.5s;
+ animation-fill-mode: forwards;
+}
+
+@keyframes alertifyMaxHeight {
+ from {
+ max-height: inherit;
+ }
+ to {
+ max-height: 100%;
+ }
+}