Skip to content

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

chore: small adjustments for the mobile ui

Ilian Sapundshieve620ca28e544
diff --git a/src/renderer/components/EntryContainerNav.tsx b/src/renderer/components/EntryContainerNav.tsx
index 7c2842b23..d0feaeb87 100644
--- a/src/renderer/components/EntryContainerNav.tsx
+++ b/src/renderer/components/EntryContainerNav.tsx
@@ -1,4 +1,6 @@
+import AppConfig from '-/AppConfig';
import {
+ ArrowBackIcon,
CloseIcon,
EntryBookmarkAddIcon,
EntryBookmarkIcon,
@@ -60,7 +62,7 @@ function EntryContainerNav(props: Props) {
sx={{
zIndex: 1,
position: 'absolute',
- top: 4,
+ top: 0,
right: 5,
display: 'flex',
alignItems: 'center',
@@ -105,19 +107,34 @@ function EntryContainerNav(props: Props) {
setActions(action);
}}
>
- <PrevDocumentIcon />
+ {AppConfig.isNativeMobile ? (
+ // ArrowBackIos glyph is biased ~6px left of its box (built to sit
+ // next to text); recenter before rotating so up/down don't stagger.
+ <ArrowBackIcon
+ sx={{ transform: 'rotate(90deg) translateX(6px)' }}
+ />
+ ) : (
+ <PrevDocumentIcon />
+ )}
</TsIconButton>
<TsIconButton
tooltip={t('core:openNextFileTooltip')}
keyBinding={keyBindings['nextDocument']}
aria-label={t('core:openNextFileTooltip')}
data-tid="fileContainerNextFile"
+ sx={{ marginLeft: smallScreen ? '5px' : 0 }}
onClick={() => {
const action: TS.PerspectiveActions = { action: 'openNext' };
setActions(action);
}}
>
- <NextDocumentIcon />
+ {AppConfig.isNativeMobile ? (
+ <ArrowBackIcon
+ sx={{ transform: 'rotate(-90deg) translateX(6px)' }}
+ />
+ ) : (
+ <NextDocumentIcon />
+ )}
</TsIconButton>
</>
)}
diff --git a/src/renderer/components/EntryContainerTitle.tsx b/src/renderer/components/EntryContainerTitle.tsx
index 886a765bc..729fe6cc2 100644
--- a/src/renderer/components/EntryContainerTitle.tsx
+++ b/src/renderer/components/EntryContainerTitle.tsx
@@ -26,8 +26,8 @@ import {
import EntryContainerMenu from '-/components/EntryContainerMenu';
import FileExtBadge from '-/components/FileExtBadge';
import TagsPreview from '-/components/TagsPreview';
-import TsTooltip from '-/components/TsTooltip';
import TsIconButton from '-/components/TsIconButton';
+import TsTooltip from '-/components/TsTooltip';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { useOpenedEntryContext } from '-/hooks/useOpenedEntryContext';
import {
@@ -116,7 +116,7 @@ function EntryContainerTitle(props: Props) {
const addMacMargin =
AppConfig.isMacLike && desktopMode && (smallScreen || isEntryInFullWidth);
- const rightMargin = smallScreen ? '60px' : '95px';
+ const rightMargin = smallScreen ? '50px' : '95px';
return (
<Box