A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix link input tooltip not showing
ammarahm-ede1d17b7d1e5e
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.jsindex 1d4322146..f0ce91882 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js@@ -85,6 +85,7 @@ const ToolbarLinkInput = ({format, value, setVisible}) => {});return;}+ console.log('format:',format,'value:',inputValue);properties.userBlur = true;formatSelection(execCommands[format](inputValue));}diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/linkpreview.js b/apps/mobile/src/views/Editor/tiny/toolbar/linkpreview.jsindex 10e593155..de299ed1f 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/linkpreview.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/linkpreview.js@@ -41,8 +41,8 @@ const LinkPreview = ({setMode, value, onSubmit}) => {return imageLink ? (<Imagestyle={{- width: 40,- height: 40,+ width: 35,+ height: 35,borderRadius: 5,marginVertical: 5,borderWidth: 1,@@ -64,8 +64,8 @@ const LinkPreview = ({setMode, value, onSubmit}) => {}}><Imagestyle={{- width: 40,- height: 40+ width: 35,+ height: 35}}resizeMode="center"source={{uri: faviconLink}}@@ -74,15 +74,15 @@ const LinkPreview = ({setMode, value, onSubmit}) => {) : (<Viewstyle={{- width: 40,- height: 40,+ width: 35,+ height: 35,marginVertical: 5,justifyContent: 'center',alignItems: 'center',backgroundColor: colors.shade,borderRadius: 5}}>- <Icon size={40} color={colors.accent} name="web" />+ <Icon size={35} color={colors.accent} name="web" /></View>);};@@ -132,7 +132,8 @@ const LinkPreview = ({setMode, value, onSubmit}) => {<Viewstyle={{flexDirection: 'row',- width: '100%'+ width: '100%',+ alignItems: 'center'}}>{renderImage(link.image, link.favicon)}{renderText(link.name, link.title, link.description)}diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/tooltip.js b/apps/mobile/src/views/Editor/tiny/toolbar/tooltip.jsindex 5d1a74f94..41bdb5952 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/tooltip.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/tooltip.js@@ -55,6 +55,7 @@ const Tooltip = () => {}, []);const show = async data => {+ console.log(data);properties.userBlur = true;if (!data) {editing.tooltip = null;@@ -74,7 +75,9 @@ const Tooltip = () => {await sleep(time);}editing.tooltip = data.title;- data.type = data.title;+ if (!data.type) {+ data.type = data.title;+ }setGroup(data);await sleep(5);animate(0, time);@@ -88,7 +91,8 @@ const Tooltip = () => {properties.pauseSelectionChange = false;}};-+ console.log(group?.type);+let style = {padding: floating ? 5 : 0,borderRadius: floating ? 5 : 0,