diff --git a/templates/repo.html b/templates/repo.html
index 5ba8b7d356..e152e0c77f 100644
--- a/templates/repo.html
+++ b/templates/repo.html
@@ -13,10 +13,7 @@
{% block main_panel %}
{% if view_history %}
-
- {{repo.props.name}} 历史浏览
- ({{ current_commit.props.ctime|tsstr_sec }})
-
+ {{repo.props.name}} 历史浏览({{ current_commit.props.ctime|tsstr_sec }})
{% else %}
{{repo.props.name}}
{% endif %}
@@ -237,12 +234,13 @@ $("table tr:gt(0)").hover(
}
);
+$('#main-panel').removeClass('ovhd');
var Hide = '';
$('.more-op').hover(
function() {
$(this).parent().css('position','relative');
$('.op-list').attr('class', 'op-list hide');
- if ($(this).offset().top + $(this).next().height() <= $('#main-panel').offset().top + $('#main-panel').height()) {
+ if ($(this).offset().top + $(this).next().height() <= $('#main').offset().top + $('#main').height()) {
$(this).next().css('top', 6);
} else {
$(this).next().css('bottom', 2);