1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 11:51:27 +00:00

fix: sdoc detail style (#6709)

* fix: sdoc detail style

* feat: update code

* feat: style

* feat: restore code

* feat: restore code

* feat: delete

* feat: rstore code

* feat: rstore code

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-09-05 13:35:58 +08:00
committed by GitHub
parent 8a61cbd784
commit dd907e14ed
6 changed files with 55 additions and 11 deletions

View File

@@ -7,6 +7,8 @@ import { Utils } from '../../../utils/utils';
import { useCollaborators } from '../../../metadata';
import EmbeddedFileDetails from '../../../components/dirent-detail/embedded-file-details';
import './index.css';
const SdocEditor = () => {
const [isStarred, setStarted] = useState(window.app.pageOptions.isStarred);
const [isDraft] = useState(window.app.pageOptions.isSdocDraft);
@@ -22,7 +24,21 @@ const SdocEditor = () => {
resizable_width: true,
display_type: 'right-panel',
component: ({ onClose, width }) => {
return (<EmbeddedFileDetails repoID={repoID} onClose={onClose} path={docPath} dirent={currentDirent} repoInfo={{ permission: docPerm }} width={width} />);
return (
<EmbeddedFileDetails
repoID={repoID}
path={docPath}
dirent={currentDirent}
repoInfo={{ permission: docPerm }}
width={width - 1}
component={{
headerComponent: {
closeIcon: (<i className="sdocfont sdoc-sm-close"></i>)
}
}}
onClose={onClose}
/>
);
},
}
];