TagSpaces is an offline, open source, document manager with tagging support
fix scrolling of properties
Ilian Sapundshievc10efc95b293
diff --git a/app/components/EntryContainer.js b/app/components/EntryContainer.jsindex 696382c27..9cc759754 100644--- a/app/components/EntryContainer.js+++ b/app/components/EntryContainer.js@@ -94,7 +94,8 @@ const styles = theme => ({entryProperties: {display: 'inline',flex: '1 1 100%',- padding: '0 0 60px 0'+ padding: '0 0 60px 0',+ height: '50%'},fileOpener: {width: '100%',@@ -1065,34 +1066,32 @@ class EntryContainer extends React.Component<Props, State> {{ currentEntry.isFile ?this.renderFileToolbar(classes) : this.renderFolderToolbar()}- <div style={{ overflowY: AppConfig.isFirefox ? 'auto' : 'overlay', maxHeight: '100%' }}>- <EntryProperties- key={this.state.EntryPropertiesKey}- resetState={this.resetState}- entryPath={currentEntry.path}- shouldReload={currentEntry.shouldReload}- addTags={this.props.addTags}- renameFile={this.props.renameFile}- renameDirectory={this.props.renameDirectory}- removeTags={this.props.removeTags}- editTagForEntry={this.props.editTagForEntry}- settings={this.props.settings}- deleteFile={this.props.deleteFile}- showNotification={this.props.showNotification}- shouldCopyFile={this.state.shouldCopyFile}- normalizeShouldCopyFile={() => this.setState({ shouldCopyFile: false })}- onEditTags={() => {- const tags = extractTagsAsObjects(currentEntry.path, this.props.settings.tagDelimiter);- this.setState({- selectedItem: {- ...currentEntry,- tags- },- isEditTagsModalOpened: true- });- }}- />- </div>+ <EntryProperties+ key={this.state.EntryPropertiesKey}+ resetState={this.resetState}+ entryPath={currentEntry.path}+ shouldReload={currentEntry.shouldReload}+ addTags={this.props.addTags}+ renameFile={this.props.renameFile}+ renameDirectory={this.props.renameDirectory}+ removeTags={this.props.removeTags}+ editTagForEntry={this.props.editTagForEntry}+ settings={this.props.settings}+ deleteFile={this.props.deleteFile}+ showNotification={this.props.showNotification}+ shouldCopyFile={this.state.shouldCopyFile}+ normalizeShouldCopyFile={() => this.setState({ shouldCopyFile: false })}+ onEditTags={() => {+ const tags = extractTagsAsObjects(currentEntry.path, this.props.settings.tagDelimiter);+ this.setState({+ selectedItem: {+ ...currentEntry,+ tags+ },+ isEditTagsModalOpened: true+ });+ }}+ /></div></div>) : <div>{i18n.t('core:noEntrySelected')}</div> }diff --git a/app/components/EntryProperties.js b/app/components/EntryProperties.jsindex 7fc4ce1a7..28a5dbbfa 100644--- a/app/components/EntryProperties.js+++ b/app/components/EntryProperties.js@@ -46,7 +46,8 @@ import TaggingActions from '../reducers/tagging-actions';const styles = theme => ({entryProperties: {overflowY: AppConfig.isFirefox ? 'auto' : 'overlay',- padding: 10+ padding: 10,+ height: '100%'},tags: {padding: '5px 5px 2px 2px',