diff --git a/media/css/seahub.css b/media/css/seahub.css index 60f0e81a2b..1d77e488ed 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -2783,8 +2783,11 @@ button.sf-dropdown-toggle:focus { font-size:0; line-height:0; } +#svg-view { + max-width:calc(100% - 4px); + max-height:calc(100% - 4px); +} #docu-view, -#svg-view, #md-view, #md-edit { background:#fff; @@ -2825,10 +2828,6 @@ button.sf-dropdown-toggle:focus { .anchor:hover { text-decoration:none; } -#svg-view { - min-height:500px;/*for ff*/ -} -#svg-view, #pdf { width:950px; margin:0 auto; @@ -2856,7 +2855,6 @@ button.sf-dropdown-toggle:focus { #md-view { padding:40px 96px; } -/* for repo, file_view page. */ #side-toolbar { position:fixed; right:0; diff --git a/seahub/templates/snippets/file_content_html.html b/seahub/templates/snippets/file_content_html.html index 1ce16e5b1d..edfec3c00b 100644 --- a/seahub/templates/snippets/file_content_html.html +++ b/seahub/templates/snippets/file_content_html.html @@ -4,7 +4,7 @@ content of files that can be viewed online shows here. For details please refer to 'snippets/file_content_js.html'. {% endcomment %} -
' + "{% trans "To view it online, you can use firefox, chrome or IE 9." %}" + '