TagSpaces is an offline, open source, document manager with tagging support
chore: improving UI glitches
Ilian Sapundshiev2d3280f1b3c0
diff --git a/src/renderer/components/TsSelect.tsx b/src/renderer/components/TsSelect.tsxindex 053df04f0..2e42b2882 100644--- a/src/renderer/components/TsSelect.tsx+++ b/src/renderer/components/TsSelect.tsx@@ -32,7 +32,7 @@ function TsSelect(props: TSTextFieldProps) {const desktopMode = useSelector(isDesktopMode);return (- <>+ <div><FormHelperText style={{ marginLeft: 0, marginTop: 0 }}>{label}</FormHelperText>@@ -48,7 +48,7 @@ function TsSelect(props: TSTextFieldProps) {>{children}</TextField>- </>+ </div>);}diff --git a/src/renderer/components/TsTextField.tsx b/src/renderer/components/TsTextField.tsxindex 470c5531d..e2282a48e 100644--- a/src/renderer/components/TsTextField.tsx+++ b/src/renderer/components/TsTextField.tsx@@ -95,7 +95,7 @@ function TsTextField(props: TSTextFieldProps) {}return (- <>+ <div><FormHelperText style={{ marginLeft: 0, marginTop: 0 }}>{label}</FormHelperText>@@ -135,7 +135,7 @@ function TsTextField(props: TSTextFieldProps) {)}</MenuList></Menu>- </>+ </div>);}diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsxindex 561c6e783..0d786cd1f 100644--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx@@ -1131,7 +1131,9 @@ function CreateEditLocationDialog(props: Props) {</AccordionSummary><AccordionDetails><FormControl fullWidth={true}>- <FormLabel>{t('encryptionExplanation')}</FormLabel>+ <FormLabel style={{ marginBottom: 15 }}>+ {t('encryptionExplanation')}+ </FormLabel><TsTextFieldname="encryptionKey"type={showEncryptionKey ? 'text' : 'password'}diff --git a/src/renderer/components/dialogs/MaxLoopsSelect.tsx b/src/renderer/components/dialogs/MaxLoopsSelect.tsxindex 3e5226567..d1a648275 100644--- a/src/renderer/components/dialogs/MaxLoopsSelect.tsx+++ b/src/renderer/components/dialogs/MaxLoopsSelect.tsx@@ -1,6 +1,6 @@import React from 'react';-import { MenuItem, Select } from '@mui/material';-+import { MenuItem } from '@mui/material';+import TsSelect from '-/components/TsSelect';interface Props {maxLoops: number;changeMaxLoops: (event: React.ChangeEvent<HTMLInputElement>) => void;@@ -9,11 +9,15 @@ interface Props {function MaxLoopsSelect(props: Props) {const { maxLoops, changeMaxLoops } = props;return (- <Select+ <TsSelectdata-tid="maxLoopsTID"name="maxLoops"+ fullWidth={false}onChange={changeMaxLoops}value={maxLoops}+ style={{+ minWidth: 100,+ }}><MenuItem value="1"><span>1000</span>@@ -42,7 +46,7 @@ function MaxLoopsSelect(props: Props) {<MenuItem value="200"><span>200000</span></MenuItem>- </Select>+ </TsSelect>);}