TagSpaces is an offline, open source, document manager with tagging support
added box shadow on the left to the close entry section
Ilian Sapundshievb319dea723c1
diff --git a/app/components/EntryContainer.js b/app/components/EntryContainer.jsindex 2a4d7ce87..0366cf4ba 100644--- a/app/components/EntryContainer.js+++ b/app/components/EntryContainer.js@@ -82,7 +82,7 @@ const styles = theme => ({flexDirection: 'column',flex: '1 1 100%',display: 'flex',- backgroundColor: theme.palette.background.default+ backgroundColor: theme.palette.background.default,},fileContent: {width: '100%',@@ -117,7 +117,7 @@ const styles = theme => ({display: 'flex',flexDirection: 'row',justifyContent: 'flex-start',- borderBottom: '1px solid ' + theme.palette.divider+ borderBottom: '1px solid ' + theme.palette.divider,},flexLeft: {flexDirection: 'row',@@ -140,6 +140,13 @@ const styles = theme => ({minWidth: 20,height: 44,whiteSpace: 'nowrap',+ },+ entryCloseSection: {+ position: 'absolute',+ top: 0,+ right: 0,+ backgroundColor: theme.palette.background.default,+ boxShadow: '-15px 0px 24px 3px ' + theme.palette.background.default}});@@ -730,6 +737,7 @@ class EntryContainer extends React.Component<Props, State> {aria-label={i18n.t('core:openNextFileTooltip')}data-tid="fileContainerNextFile"onClick={this.openNextFile}+ style={{ marginRight: 5 }}><ArrowRightIcon /></IconButton>@@ -825,9 +833,9 @@ class EntryContainer extends React.Component<Props, State> {if (currentEntry && currentEntry.path) {fileTitle = extractTitle(currentEntry.path, !currentEntry.isFile);- if (fileTitle.length > maxCharactersTitleLength) {- fileTitle = fileTitle.substr(0, maxCharactersTitleLength) + '...';- }+ // if (fileTitle.length > maxCharactersTitleLength) {+ // fileTitle = fileTitle.substr(0, maxCharactersTitleLength) + '...';+ // }if (currentEntry.editMode && currentEntry.editingExtensionPath) {fileOpenerURL =@@ -1007,7 +1015,7 @@ class EntryContainer extends React.Component<Props, State> {)}</div>{(this.state.editingSupported && currentEntry.editMode) && (- <div>+ <div className={classes.entryCloseSection}><IconButtondisabled={false}onClick={this.startSavingFile}@@ -1035,7 +1043,7 @@ class EntryContainer extends React.Component<Props, State> {</div>)}{(this.state.editingSupported && !currentEntry.editMode) && (- <div>+ <div className={classes.entryCloseSection}>{/* <IconButtondisabled={false}onClick={this.editFile}@@ -1068,14 +1076,16 @@ class EntryContainer extends React.Component<Props, State> {</div>)}{(!this.state.editingSupported) && (- <IconButton- onClick={this.startClosingFile}- title={i18n.t('core:closeEntry')}- aria-label={i18n.t('core:closeEntry')}- data-tid="fileContainerCloseOpenedFile"- >- <CloseIcon />- </IconButton>+ <div className={classes.entryCloseSection}>+ <IconButton+ onClick={this.startClosingFile}+ title={i18n.t('core:closeEntry')}+ aria-label={i18n.t('core:closeEntry')}+ data-tid="fileContainerCloseOpenedFile"+ >+ <CloseIcon />+ </IconButton>+ </div>)}</div><div className={classes.entryProperties}>