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

update groupList maxHeight (#2777)

* update groupList maxHeight

* update ui css
This commit is contained in:
杨顺强
2019-01-07 15:03:35 +08:00
committed by Daniel Pan
parent d3d4650071
commit b6ee4fb34b
4 changed files with 5 additions and 3 deletions

View File

@@ -264,6 +264,7 @@ class ShareToGroup extends React.Component {
options={this.options} options={this.options}
placeholder={gettext('Select a group')} placeholder={gettext('Select a group')}
components={makeAnimated()} components={makeAnimated()}
maxMenuHeight={200}
inputId={'react-select-2-input'} inputId={'react-select-2-input'}
value={this.state.selectedOption} value={this.state.selectedOption}
/> />

View File

@@ -282,6 +282,7 @@ class ShareToUser extends React.Component {
loadOptions={this.loadOptions} loadOptions={this.loadOptions}
onChange={this.handleSelectChange} onChange={this.handleSelectChange}
value={this.state.selectedOption} value={this.state.selectedOption}
maxMenuHeight={200}
isMulti isMulti
isFocused isFocused
isClearable isClearable

View File

@@ -1,6 +1,6 @@
.share-dialog .share-dialog-content { .share-dialog .share-dialog-content {
padding: 0; padding: 0;
min-height: 15rem; min-height: 20rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
overflow: hidden; overflow: hidden;

View File

@@ -168,8 +168,8 @@ ul,ol,li {
} }
.dialog-list-container { /* for dialog containing list */ .dialog-list-container { /* for dialog containing list */
min-height: 15rem; min-height: 20rem;
max-height: 35rem; max-height: 25rem;
overflow: auto; overflow: auto;
} }