From 0d7c649170217ca97f9f456b9cb326a89ec3f872 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 21 Jul 2024 01:13:13 +0200 Subject: [PATCH] Improve UX of auto-added button --- external/@worldbrain/memex-common | 2 +- .../components/AnnotationEditable.tsx | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/external/@worldbrain/memex-common b/external/@worldbrain/memex-common index 51a9e8cf57..90cd2e8265 160000 --- a/external/@worldbrain/memex-common +++ b/external/@worldbrain/memex-common @@ -1 +1 @@ -Subproject commit 51a9e8cf57efc70a14260caa4230c1dd4466ca81 +Subproject commit 90cd2e8265d3cb4d08c925ef2d0e324abb33a93a diff --git a/src/annotations/components/AnnotationEditable.tsx b/src/annotations/components/AnnotationEditable.tsx index 6a708c1ae5..fa84b5d658 100644 --- a/src/annotations/components/AnnotationEditable.tsx +++ b/src/annotations/components/AnnotationEditable.tsx @@ -732,13 +732,14 @@ export default class AnnotationEditable extends React.Component { tooltipText={ this.props.isShared ? ( - Disable Auto-Add -
Only added to Spaces you manually select + Auto-Added: ON +
+ Visible in all Spaces the page is in
) : ( - Enable Auto-Add -
Added to all Spaces the page is in + Add-added: OFF +
Only visible in manually added Spaces
) } @@ -746,9 +747,9 @@ export default class AnnotationEditable extends React.Component { getPortalRoot={this.props.getRootElement} > { event.stopPropagation() if (event.shiftKey) { @@ -759,7 +760,7 @@ export default class AnnotationEditable extends React.Component { )(!this.props.isShared, !this.props.isShared) } }} - padding={'1px'} + padding={'2px'} /> @@ -1504,7 +1505,7 @@ export default class AnnotationEditable extends React.Component { const AutoAddButtonContainer = styled.div` position: absolute; - bottom: 2px; + bottom: 3px; left: 10px; z-index: 100; `