Skip to content

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

chore: small ui adjustments

Ilian Sapundshiev8a08ec7104cc
diff --git a/src/renderer/components/LinksTab.tsx b/src/renderer/components/LinksTab.tsx
index 709db1d4e..858220ba8 100644
--- a/src/renderer/components/LinksTab.tsx
+++ b/src/renderer/components/LinksTab.tsx
@@ -35,6 +35,7 @@ import {
import { useEffect, useReducer, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
+import InfoIcon from './InfoIcon';
import TooltipTS from './Tooltip';
interface Props {}
@@ -203,9 +204,12 @@ function LinksTab(props: Props) {
<Box display="block">
{links.current && links.current.length > 0 && (
<>
- <Typography variant="caption">
- {t('core:outgoingLinks')} (
- {t('found in the file content and/or its description')}):
+ <Typography variant="body2">
+ <b>{t('core:outgoingLinks')}</b> (
+ {openedEntry.isFile
+ ? t('from the file content and/or its description')
+ : t('from the folder description')}
+ ):
</Typography>
<br />
{links.current?.map((link) => outgoingLinkButton(link))}
@@ -213,9 +217,12 @@ function LinksTab(props: Props) {
)}
</Box>
<Box display="block">
- <Typography variant="caption">
- {t('core:incomingLinks')} (
- {t('full text search should be enabled for this location')}):
+ <Typography variant="body2">
+ <b>{t('core:incomingLinks')}</b> (
+ {t('from content and description of other files and folders')}
+ )
+ <InfoIcon tooltip="Full text search with link extraction for the current location is needed for this feature." />
+ :
</Typography>
<br />
{inboundLinks.current?.length ? (
diff --git a/src/renderer/components/TagsPreview.tsx b/src/renderer/components/TagsPreview.tsx
index 0f6dc0b10..06dae5a3f 100644
--- a/src/renderer/components/TagsPreview.tsx
+++ b/src/renderer/components/TagsPreview.tsx
@@ -86,12 +86,13 @@ function TagsPreview(props: Props) {
{
display: 'inline-block',
verticalAlign: 'middle',
- minWidth: 15,
- maxWidth: 60,
+ minWidth: '15px',
+ maxWidth: '60px',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
- height: 15,
+ height: '15px',
+ lineHeight: '15px',
marginLeft: '4px',
marginRight: '4px',
paddingLeft: showFirstTag ? '4px' : '0',
@@ -103,7 +104,6 @@ function TagsPreview(props: Props) {
: 'none',
backgroundColor: firstTagColor,
fontSize: '11px',
- lineHeight: '16px',
color: firstTagTextColor || defaultTextColor, //tag1Colors.textcolor ,
textAlign: 'center',
WebkitAppRegion: 'no-drag',
diff --git a/src/renderer/perspectives/grid/components/GridCell.tsx b/src/renderer/perspectives/grid/components/GridCell.tsx
index ed99a82a2..c5ee35d11 100644
--- a/src/renderer/perspectives/grid/components/GridCell.tsx
+++ b/src/renderer/perspectives/grid/components/GridCell.tsx
@@ -489,6 +489,7 @@ function GridCell(props: Props) {
overflowX: 'clip',
textWrap: 'nowrap',
whiteSpace: 'nowrap',
+ fontStyle: 'italic',
color: 'gray',
}}
>