Skip to content

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

chore: adjusting the ui of the foldercontainer for mobile use

Ilian Sapundshiev31d9c3e09443
diff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsx
index 746431720..a3beb3471 100644
--- a/src/renderer/components/FolderContainer.tsx
+++ b/src/renderer/components/FolderContainer.tsx
@@ -380,6 +380,8 @@ function FolderContainer({ toggleDrawer, drawerOpened, hidden }: Props) {
onClick={openSearchMode}
startIcon={<SearchIcon />}
sx={{
+ borderColor: theme.palette.divider,
+ color: theme.palette.divider,
marginTop: '-2px',
marginRight: 0,
marginLedt: 0,
diff --git a/src/renderer/components/PathBreadcrumbs.tsx b/src/renderer/components/PathBreadcrumbs.tsx
index 3934c546a..2d98a206d 100644
--- a/src/renderer/components/PathBreadcrumbs.tsx
+++ b/src/renderer/components/PathBreadcrumbs.tsx
@@ -65,11 +65,16 @@ const StyledBreadcrumb = styled(Chip)(({ theme }) => {
const StyledBreadcrumbs = styled(Breadcrumbs)(({ theme }) => {
return {
- overflowX: 'scroll',
- marginTop: '8px',
+ // auto (not scroll) so a horizontal scrollbar is reserved only when the
+ // path actually overflows — a permanent scrollbar pinned the chips to the
+ // top and broke vertical centering.
+ overflowX: 'auto',
+ display: 'flex',
+ alignItems: 'center',
WebkitAppRegion: 'no-drag',
'& ol': {
flexWrap: 'nowrap',
+ alignItems: 'center',
},
};
}) as typeof Breadcrumbs; // TypeScript only: need a type cast here because https://github.com/Microsoft/TypeScript/issues/26591