Skip to content

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

chore: small ui fixes

Ilian Sapundshiev03498303ddc2
diff --git a/src/renderer/components/EntryProperties.tsx b/src/renderer/components/EntryProperties.tsx
index ee600cf8d..5468dbb0b 100644
--- a/src/renderer/components/EntryProperties.tsx
+++ b/src/renderer/components/EntryProperties.tsx
@@ -704,12 +704,12 @@ function EntryProperties(props: Props) {
slotProps={{
input: {
readOnly: true,
+ startAdornment: (
+ <InputAdornment position="start">
+ <SizeIcon />
+ </InputAdornment>
+ ),
...(!openedEntry.isFile && {
- startAdornment: (
- <InputAdornment position="start">
- <SizeIcon />
- </InputAdornment>
- ),
endAdornment: (
<TsButton
variant="text"
diff --git a/src/renderer/components/TsToolbarButton.tsx b/src/renderer/components/TsToolbarButton.tsx
index 4030b1574..947440cd5 100644
--- a/src/renderer/components/TsToolbarButton.tsx
+++ b/src/renderer/components/TsToolbarButton.tsx
@@ -36,8 +36,9 @@ function TsToolbarButton(props: TSIconButtonProps) {
children,
keyBinding,
tooltip,
- title,
+ title = '‎',
disabled,
+ style,
// showTitle = false,
...restProps
} = props;
@@ -48,7 +49,11 @@ function TsToolbarButton(props: TSIconButtonProps) {
<IconButton
size={desktopMode ? 'medium' : 'large'}
disabled={disabled}
- style={{ borderRadius: AppConfig.defaultCSSRadius, display: 'block' }}
+ style={{
+ borderRadius: AppConfig.defaultCSSRadius,
+ display: 'block',
+ ...style,
+ }}
sx={{
'& .MuiSvgIcon-root ': {
width: showTitle ? '0.8em' : '1em',
diff --git a/src/renderer/components/ZoomComponent.tsx b/src/renderer/components/ZoomComponent.tsx
index 2610fd028..4e6998274 100644
--- a/src/renderer/components/ZoomComponent.tsx
+++ b/src/renderer/components/ZoomComponent.tsx
@@ -92,7 +92,7 @@ export default function ZoomComponent(props: Props) {
return (
<Box sx={{ display: 'flex' }}>
- <TsToolbarButton tooltip={t('core:zoomOut')} title="‎" onClick={zoomOut}>
+ <TsToolbarButton tooltip={t('core:zoomOut')} onClick={zoomOut}>
<ZoomOutIcon />
</TsToolbarButton>
<Typography
@@ -101,7 +101,7 @@ export default function ZoomComponent(props: Props) {
>
{entrySizePercent}
</Typography>
- <TsToolbarButton tooltip={t('core:zoomIn')} title="‎" onClick={zoomIn}>
+ <TsToolbarButton tooltip={t('core:zoomIn')} onClick={zoomIn}>
<ZoomInIcon />
</TsToolbarButton>
</Box>