Skip to content

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

fix: optimizing the dragging of small windows

Ilian Sapundshieve53de304987c
diff --git a/src/renderer/components/EntryContainerTitle.tsx b/src/renderer/components/EntryContainerTitle.tsx
index 4deeb277d..bc706a08c 100644
--- a/src/renderer/components/EntryContainerTitle.tsx
+++ b/src/renderer/components/EntryContainerTitle.tsx
@@ -144,13 +144,15 @@ function EntryContainerTitle(props: Props) {
const addMacMargin =
AppConfig.isMacLike && desktopMode && (smallScreen || isEntryInFullWidth);
+ const rightMargin = smallScreen ? 35 : 70;
+
return (
<div
style={{
paddingLeft: 5,
display: 'flex',
alignItems: 'center',
- marginRight: openedEntry.isFile ? 100 : 0,
+ marginRight: openedEntry.isFile ? rightMargin : 0,
flexDirection: 'row',
flex: '1 1',
overflowX: 'auto',