--- a/src/pyams_content/zmi/resources/less/pyams_content.less Mon Feb 01 13:31:22 2021 +0100
+++ b/src/pyams_content/zmi/resources/less/pyams_content.less Mon Feb 01 13:32:29 2021 +0100
@@ -1,42 +1,19 @@
.ams-widget.comments {
+ margin-bottom: 0;
+
.widget-body {
- position: fixed;
- height: ~"calc(100% - 337px)";
+ display: flex;
+ flex-direction: column;
.chat-body {
- position: relative;
- height: 100%;
+ flex-grow: 1;
+ max-height: ~"calc(100vh - 385px)";
+ overflow-y: auto;
}
.chat-footer {
- position: fixed;
- bottom: 10px;
- }
-
- &,
- .chat-footer {
- width: ~"calc(100% - 240px)";
-
- @media (max-width: 767px) {
- width: ~"calc(100% - 10px)";
- }
- @media (min-width: 768px) and (max-width: 979px) {
- width: ~"calc(100% - 20px)";
- }
-
- .minified & {
- width: ~"calc(100% - 65px)";
-
- @media (max-width: 767px) {
- & {
- width: ~"calc(100% - 55px)";
- }
- }
- }
- .hidden-menu & {
- width: ~"calc(100% - 30px)";
- }
+ flex-grow: 0;
}
}
}