Fixed suggestion list height in the edit post modal and RHS
Этот коммит содержится в:
@@ -405,3 +405,11 @@
|
|||||||
@include opacity(0.7);
|
@include opacity(0.7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-body.edit-modal-body {
|
||||||
|
overflow: visible;
|
||||||
|
|
||||||
|
.suggestion-content {
|
||||||
|
max-height: 150px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -93,6 +93,10 @@
|
|||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.suggestion-content {
|
||||||
|
max-height: 120px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-right-container {
|
.sidebar-right-container {
|
||||||
|
|||||||
@@ -26,13 +26,13 @@
|
|||||||
<script>
|
<script>
|
||||||
window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }}, {{ .User }});
|
window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }}, {{ .User }});
|
||||||
$('body').tooltip( {selector: '[data-toggle=tooltip]'} );
|
$('body').tooltip( {selector: '[data-toggle=tooltip]'} );
|
||||||
|
var modals = $('.modal-body').not('.edit-modal-body');
|
||||||
if($(window).height() > 1200){
|
if($(window).height() > 1200){
|
||||||
$('.modal-body').css('max-height', 1000);
|
modals.css('max-height', 1000);
|
||||||
|
} else {
|
||||||
|
modals.css('max-height', $(window).height() - 200);
|
||||||
}
|
}
|
||||||
else {
|
modals.perfectScrollbar();
|
||||||
$('.modal-body').css('max-height', $(window).height() - 200);
|
|
||||||
}
|
|
||||||
$('.modal-body').perfectScrollbar();
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user