1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

fix mobile style (#3567)

This commit is contained in:
Michael An
2019-05-29 11:48:00 +08:00
committed by Daniel Pan
parent 9df8ee0d6e
commit e1e9ca8bd1
6 changed files with 44 additions and 16 deletions

View File

@@ -234,9 +234,11 @@ class WikiMarkdownViewer extends React.Component {
if (this.props.isFileLoading) {
return <Loading />;
}
// In dir-column-file repoID is one of props, width is 100%; In wiki-viewer repoID is not props, width isn't 100%
let contentClassName = `${this.props.repoID ? contentClass + ' w-100' : contentClass}`
return (
<div ref={this.markdownContainer} className="wiki-page-container" onScroll={this.onScrollHandler.bind(this)}>
<div className={contentClass}>
<div className={contentClassName}>
{this.props.children}
{this.renderMarkdown()}
{this.props.isWiki && this.renderRelatedFiles()}