mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
[discuss to group] fixed '.msg-main top border missing sometimes' in chrome
This commit is contained in:
@@ -1550,6 +1550,7 @@ textarea:-moz-placeholder {/* for FF */
|
|||||||
}
|
}
|
||||||
.msg {
|
.msg {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
padding:1px 0; /* to fix 'top border missing' when only 1 discussion & no scrollbar in chrome */
|
||||||
margin:15px 0 20px;
|
margin:15px 0 20px;
|
||||||
}
|
}
|
||||||
.msg .txt {
|
.msg .txt {
|
||||||
|
@@ -7,7 +7,7 @@ $('#footer').addClass('hide');
|
|||||||
|
|
||||||
{% if groups %}
|
{% if groups %}
|
||||||
function getAndHandleDiscussions(data_html) {
|
function getAndHandleDiscussions(data_html) {
|
||||||
$('#discussions-to-grp').html(data_html).css({'max-height':$(window).height() * 0.9 - $('#bottom-bar').height() - $('#discuss-to-group-caret').height() - $('#discuss-to-group-form').outerHeight()}).removeClass('hide');
|
$('#discussions-to-grp').html(data_html).css({'max-height': parseInt($(window).height() * 0.9 - $('#bottom-bar').height() - $('#discuss-to-group-caret').height() - $('#discuss-to-group-form').outerHeight())}).removeClass('hide'); // 'parseInt' to fix '.msg-main top border missing when the ul's max-height is xxx.5px'
|
||||||
{% include 'group/msg_js.html' %}
|
{% include 'group/msg_js.html' %}
|
||||||
}
|
}
|
||||||
$('#discuss').click(function() {
|
$('#discuss').click(function() {
|
||||||
|
Reference in New Issue
Block a user