Skip to content

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

chore: ui fixes for the list perspective

Ilian Sapundshievb70bdf6b48db
diff --git a/src/renderer/perspectives/grid/components/GridPagination.tsx b/src/renderer/perspectives/grid/components/GridPagination.tsx
index b880af5c9..0c97a66c9 100644
--- a/src/renderer/perspectives/grid/components/GridPagination.tsx
+++ b/src/renderer/perspectives/grid/components/GridPagination.tsx
@@ -248,7 +248,7 @@ function GridPagination(props: Props) {
directoryMeta &&
directoryMeta.description
? 150
- : 115,
+ : 125,
position: 'relative',
}}
>
diff --git a/src/renderer/perspectives/list/components/RowCell.tsx b/src/renderer/perspectives/list/components/RowCell.tsx
index b88473157..c4e41009b 100644
--- a/src/renderer/perspectives/list/components/RowCell.tsx
+++ b/src/renderer/perspectives/list/components/RowCell.tsx
@@ -281,35 +281,29 @@ function RowCell(props: Props) {
const entryHeight = calculateEntryHeight(entrySize);
const isSmall = entrySize === 'tiny'; // || entrySize === 'small';
+ let entryBackgroundColor = fileSystemEntryBgColor;
+ if (entryBackgroundColor === 'transparent') {
+ entryBackgroundColor = theme.palette.background.default;
+ }
+
const backgroundColor = selected
? theme.palette.primary.light
- : fileSystemEntryBgColor;
+ : entryBackgroundColor;
return (
<Paper
data-entry-id={fsEntry.uuid}
style={{
boxShadow: 'none',
- borderRadius: 0, // AppConfig.defaultCSSRadius,
- borderLeft:
- '1px solid ' +
- (selected
- ? theme.palette.primary.main + ' !important'
- : 'transparent'),
- borderRight:
- '1px solid ' +
- (selected
- ? theme.palette.primary.main + ' !important'
- : 'transparent'),
- borderTop:
- '1px solid ' +
- (selected
- ? theme.palette.primary.main + ' !important'
- : 'transparent'),
+ borderRadius: 0,
+ borderLeft: '1px solid transparent',
+ borderRight: '1px solid transparent',
+ borderTop: '1px solid transparent',
borderBottom: '1px solid ' + theme.palette.divider,
+ background: 'transparent',
margin: 0,
- marginTop: 0,
paddingBottom: 5,
+ marginLeft: 5,
minHeight: entryHeight,
marginBottom: isLast ? 40 : 'auto',
}}