mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
fix: file view longtext editor icon (#6942)
Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import React from 'react';
|
import React, { Suspense } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import watermark from 'watermark-dom';
|
import watermark from 'watermark-dom';
|
||||||
|
import { I18nextProvider } from 'react-i18next';
|
||||||
|
import i18n from '../../_i18n/i18n-sdoc-editor';
|
||||||
import { seafileAPI } from '../../utils/seafile-api';
|
import { seafileAPI } from '../../utils/seafile-api';
|
||||||
import { gettext, siteName } from '../../utils/constants';
|
import { gettext, siteName } from '../../utils/constants';
|
||||||
import { Utils } from '../../utils/utils';
|
import { Utils } from '../../utils/utils';
|
||||||
@@ -11,6 +13,7 @@ import FileToolbar from './file-toolbar';
|
|||||||
import OnlyofficeFileToolbar from './onlyoffice-file-toolbar';
|
import OnlyofficeFileToolbar from './onlyoffice-file-toolbar';
|
||||||
import EmbeddedFileDetails from '../dirent-detail/embedded-file-details';
|
import EmbeddedFileDetails from '../dirent-detail/embedded-file-details';
|
||||||
import { CollaboratorsProvider, EnableMetadataProvider } from '../../metadata';
|
import { CollaboratorsProvider, EnableMetadataProvider } from '../../metadata';
|
||||||
|
import Loading from '../loading';
|
||||||
|
|
||||||
import '../../css/file-view.css';
|
import '../../css/file-view.css';
|
||||||
|
|
||||||
@@ -110,6 +113,8 @@ class FileView extends React.Component {
|
|||||||
const { isOnlyofficeFile = false } = this.props;
|
const { isOnlyofficeFile = false } = this.props;
|
||||||
const { isDetailsPanelOpen, isHeaderShown } = this.state;
|
const { isDetailsPanelOpen, isHeaderShown } = this.state;
|
||||||
return (
|
return (
|
||||||
|
<I18nextProvider i18n={ i18n }>
|
||||||
|
<Suspense fallback={<Loading />}>
|
||||||
<div className="h-100 d-flex flex-column">
|
<div className="h-100 d-flex flex-column">
|
||||||
<div className={`file-view-header d-flex justify-content-between align-items-center d-print-none ${isOnlyofficeFile ? (isHeaderShown ? 'onlyoffice-file-view-header-shown' : 'onlyoffice-file-view-header-hidden') : ''}`}>
|
<div className={`file-view-header d-flex justify-content-between align-items-center d-print-none ${isOnlyofficeFile ? (isHeaderShown ? 'onlyoffice-file-view-header-shown' : 'onlyoffice-file-view-header-hidden') : ''}`}>
|
||||||
<FileInfo
|
<FileInfo
|
||||||
@@ -159,6 +164,8 @@ class FileView extends React.Component {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</Suspense>
|
||||||
|
</I18nextProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/sf_font3/iconfont.css" />
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/sf_font3/iconfont.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seafile-ui.css" />
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seafile-ui.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub_react.css?t=1398068110" />
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub_react.css?t=1398068110" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}seafile-editor/seafile-editor-font.css" />
|
||||||
{% block extra_style %}{% endblock %}
|
{% block extra_style %}{% endblock %}
|
||||||
{% if branding_css != '' %}<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{ branding_css }}" />{% endif %}
|
{% if branding_css != '' %}<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{ branding_css }}" />{% endif %}
|
||||||
{% if enable_branding_css %}<link rel="stylesheet" type="text/css" href="{% url 'custom_css' %}" />{% endif %}
|
{% if enable_branding_css %}<link rel="stylesheet" type="text/css" href="{% url 'custom_css' %}" />{% endif %}
|
||||||
|
Reference in New Issue
Block a user