Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix various usability issue in folder container toolbar

Ilian Sapundshievede2242364cf
diff --git a/app/components/FolderContainer.js b/app/components/FolderContainer.js
index 1b29534d7..fb5c14d23 100644
--- a/app/components/FolderContainer.js
+++ b/app/components/FolderContainer.js
@@ -56,7 +56,7 @@ const styles = theme => ({
width: '100%',
height: '100%',
maxHeight: '100%',
- overflowY: 'hidden',
+ overflow: 'hidden',
backgroundColor: theme.palette.background.default,
display: 'flex',
flexDirection: 'column'
@@ -69,9 +69,9 @@ const styles = theme => ({
justifyContent: 'center',
},
topPanel: {
- flex: '1 1 50px',
height: 50,
width: '100%',
+ overflowX: 'overlay',
backgroundColor: theme.palette.background.default
},
centerPanel: {
@@ -84,10 +84,6 @@ const styles = theme => ({
display: 'flex',
flexDirection: 'column'
},
- entriesFound: {
- alignSelf: 'center',
- paddingTop: 10
- },
folderButton: {
minWidth: 30,
whiteSpace: 'nowrap',
@@ -354,18 +350,13 @@ class FolderContainer extends React.Component<Props, State> {
<div className={classes.topPanel}>
<div className={classes.toolbar}>
<LocationMenu />
- <div className={classes.flexMiddle} data-tid="entriesFound">
- {this.props.searchResultCount > 0 && (
- <Typography
- style={{ whiteSpace: 'nowrap' }}
- className={classes.entriesFound}
- >
- {this.props.searchResultCount} {i18n.t('entries')}
- </Typography>
- )}
- </div>
+ <div
+ className={classes.flexMiddle}
+ data-tid="entriesFound"
+ title={this.props.searchResultCount + ' ' + i18n.t('entries')}
+ />
{this.props.currentDirectoryPath && (
- <div style={{ whiteSpace: 'nowrap' }}>
+ <div>
{this.state.pathParts &&
this.state.pathParts.map(pathPart => (
<Button
diff --git a/app/components/LocationMenu.js b/app/components/LocationMenu.js
index 123a1ed53..1e634c37d 100644
--- a/app/components/LocationMenu.js
+++ b/app/components/LocationMenu.js
@@ -88,11 +88,7 @@ class LocationMenu extends React.Component<Props, State> {
const { currentLocation } = this.state;
return (
<div style={{
- position: 'absolute',
- left: 0,
- marginLeft: 5,
backgroundColor: theme.palette.background.default,
- zIndex: 1
}}
>
<Button