Skip to content

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

limiting the length of the directory name in directory tree to 25 chars

Ilian Sapundshievd2d9782deb06
diff --git a/app/components/LocationManager.js b/app/components/LocationManager.js
index d7fedb073..d0434619c 100644
--- a/app/components/LocationManager.js
+++ b/app/components/LocationManager.js
@@ -453,9 +453,9 @@ class LocationManager extends React.Component<Props, State> {
renderNameColumnAction = (field, location, key) => {
const children = (
- <span>
+ <span style={{ fontSize: 15, marginLeft: 5 }} title={field}>
<FolderIcon style={{ marginTop: 0, marginBottom: -8 }} className={this.props.classes.icon} />
- <span style={{ fontSize: 15, marginLeft: 5 }}>{field}</span>
+ {field && field.length > 25 ? field.substr(0, 25) + '...' : field}
{/* <IconButton
style={{ float: 'right', paddingTop: 0, paddingBottom: 0, paddingLeft: 0, paddingRight: 0 }}
aria-label={i18n.t('core:options')}