Skip to content

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

fix: e2e test and grid cell height issue (#1470)

Ilian7cc59d6a7b11
diff --git a/app/components/CustomDragLayer.tsx b/app/components/CustomDragLayer.tsx
index e4cf605c2..9a1ae603e 100644
--- a/app/components/CustomDragLayer.tsx
+++ b/app/components/CustomDragLayer.tsx
@@ -7,7 +7,7 @@ import DragItemTypes from '-/components/DragItemTypes';
const layerStyles: React.CSSProperties = {
position: 'fixed',
pointerEvents: 'none',
- zIndex: 100,
+ zIndex: 2000,
left: 0,
top: 0,
width: '100%',
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index 6e9850e57..eab999613 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -1079,7 +1079,7 @@ const EntryContainer = (props: Props) => {
resizerStyle={{
backgroundColor: props.theme.palette.divider
}}
- style={{ zIndex: 2000 }}
+ style={{ zIndex: 1300 }}
// size={this.state.entryPropertiesSplitSize}
// minSize={defaultSplitSize}
// maxSize={fullSplitSize}
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsx
index be0e056a0..a7d515125 100644
--- a/app/perspectives/grid-perspective/components/MainContainer.tsx
+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx
@@ -758,7 +758,9 @@ const GridPerspective = (props: Props) => {
gridTemplateColumns:
layoutType === 'grid'
? 'repeat(auto-fit,minmax(' + entryWidth + 'px,1fr))'
- : 'none'
+ : 'none',
+ gridTemplateRows:
+ layoutType === 'grid' ? 'repeat(auto-fit, 230px)' : 'auto'
}}
theme={theme}
// gridRef={this.mainGrid}