1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 14:49:09 +00:00

Fix wikis list style when side panel width is changing (#6349)

* fix wikis list style when side panel width is changing

* change code format

* fix wiki list item width when side panel is folded
This commit is contained in:
Michael An
2024-07-15 17:23:23 +08:00
committed by GitHub
parent 2536d5c6c3
commit 7c6866503f
4 changed files with 38 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import { gettext, canPublishRepo } from '../../utils/constants';
import { Utils } from '../../utils/utils';
@@ -9,6 +10,11 @@ import AddWikiDialog from '../../components/dialog/add-wiki-dialog';
import wikiAPI from '../../utils/wiki-api';
import WikiCardView from '../../components/wiki-card-view/wiki-card-view';
const propTypes = {
sidePanelRate: PropTypes.number,
isSidePanelFolded: PropTypes.bool,
};
class Wikis extends Component {
constructor(props) {
super(props);
@@ -209,6 +215,8 @@ class Wikis extends Component {
deleteWiki={this.deleteWiki}
renameWiki={this.renameWiki}
toggelAddWikiDialog={this.toggelAddWikiDialog}
sidePanelRate={this.props.sidePanelRate}
isSidePanelFolded={this.props.isSidePanelFolded}
/>
</div>
}
@@ -229,4 +237,6 @@ class Wikis extends Component {
}
}
Wikis.propTypes = propTypes;
export default Wikis;