Skip to content

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

fix: ui glitch in the perspective settings

Ilian Sapundshiev453e9456f9cb
diff --git a/app/components/LocationView.tsx b/app/components/LocationView.tsx
index eea947b88..0065fb674 100644
--- a/app/components/LocationView.tsx
+++ b/app/components/LocationView.tsx
@@ -111,7 +111,11 @@ function LocationView(props: Props) {
const handleLocationClick = () => {
if (location.uuid === props.currentLocationId) {
// the same location click
- props.loadDirectoryContent(PlatformIO.getLocationPath(location), true, true);
+ props.loadDirectoryContent(
+ PlatformIO.getLocationPath(location),
+ true,
+ true
+ );
} else {
// this.directoryTreeRef[location.uuid].loadSubDir(location, 1);
props.setSelectedEntries([]);
diff --git a/app/perspectives/grid-perspective/components/GridSettingsDialog.tsx b/app/perspectives/grid-perspective/components/GridSettingsDialog.tsx
index f53a94e56..fb47ac75d 100644
--- a/app/perspectives/grid-perspective/components/GridSettingsDialog.tsx
+++ b/app/perspectives/grid-perspective/components/GridSettingsDialog.tsx
@@ -31,7 +31,8 @@ import {
Select,
MenuItem,
Button,
- FormHelperText
+ FormHelperText,
+ TextField
} from '@mui/material';
import ListItemIcon from '@mui/material/ListItemIcon';
import ListItemText from '@mui/material/ListItemText';
@@ -317,10 +318,9 @@ function GridSettingsDialog(props: Props) {
fullWidth={true}
style={{ overflow: 'visible', marginTop: 20 }}
>
- <InputLabel shrink htmlFor="pageLimit">
- {i18n.t('core:pageLimit')}
- </InputLabel>
- <Select
+ <TextField
+ select
+ label={i18n.t('core:pageLimit')}
name="limit"
defaultValue={gridPageLimit}
onChange={handleGridPaginationLimit}
@@ -330,7 +330,7 @@ function GridSettingsDialog(props: Props) {
<MenuItem value={100}>100</MenuItem>
<MenuItem value={500}>500</MenuItem>
<MenuItem value={1000}>1000</MenuItem>
- </Select>
+ </TextField>
<FormHelperText>{i18n.t('core:pageLimitHelp')}</FormHelperText>
</FormControl>
</DialogContent>
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsx
index 18abd2bcc..e32c48a55 100644
--- a/app/perspectives/grid-perspective/components/MainContainer.tsx
+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx
@@ -363,7 +363,7 @@ function GridPerspective(props: Props) {
setSortingContextMenuAnchorEl(null);
};
- const handleSortingMenu = (event) => {
+ const handleSortingMenu = event => {
const anchor = event ? event.currentTarget : null;
setSortingContextMenuAnchorEl(anchor);
};
diff --git a/app/perspectives/list/components/MainContainer.tsx b/app/perspectives/list/components/MainContainer.tsx
index cfbc1b5b0..002a0685b 100644
--- a/app/perspectives/list/components/MainContainer.tsx
+++ b/app/perspectives/list/components/MainContainer.tsx
@@ -363,7 +363,7 @@ function GridPerspective(props: Props) {
setSortingContextMenuAnchorEl(null);
};
- const handleSortingMenu = (event) => {
+ const handleSortingMenu = event => {
const anchor = event ? event.currentTarget : null;
setSortingContextMenuAnchorEl(anchor);
};