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
mobile: fix compactMode indicators show always
ammarahm-ed2a31f70b4a03
diff --git a/apps/mobile/app/components/list-items/note/index.js b/apps/mobile/app/components/list-items/note/index.jsindex 9f0818da3..cd0bf9c78 100644--- a/apps/mobile/app/components/list-items/note/index.js+++ b/apps/mobile/app/components/list-items/note/index.js@@ -298,7 +298,7 @@ const NoteItem = ({{item.favorite ? (<IcontestID="icon-star"- name="star"+ name="star-outline"size={SIZE.md}style={{marginRight: 6@@ -368,50 +368,54 @@ const NoteItem = ({alignItems: "center"}}>- {item.conflicted ? (- <Icon- name="alert-circle"- style={{- marginRight: 6- }}- size={SIZE.sm}- color={colors.red}- />- ) : null}+ {compactMode ? (+ <>+ {item.conflicted ? (+ <Icon+ name="alert-circle"+ style={{+ marginRight: 6+ }}+ size={SIZE.sm}+ color={colors.red}+ />+ ) : null}- {item.locked ? (- <Icon- name="lock"- testID="note-locked-icon"- size={SIZE.sm}- style={{- marginRight: 6- }}- color={colors.icon}- />- ) : null}+ {item.locked ? (+ <Icon+ name="lock"+ testID="note-locked-icon"+ size={SIZE.sm}+ style={{+ marginRight: 6+ }}+ color={colors.icon}+ />+ ) : null}- {item.favorite ? (- <Icon- testID="icon-star"- name="star-outline"- size={SIZE.md}- style={{- marginRight: 6- }}- color="orange"- />- ) : null}+ {item.favorite ? (+ <Icon+ testID="icon-star"+ name="star-outline"+ size={SIZE.md}+ style={{+ marginRight: 6+ }}+ color="orange"+ />+ ) : null}- <TimeSince- style={{- fontSize: SIZE.xs,- color: colors.icon,- marginRight: 6- }}- time={item[dateBy]}- updateFrequency={Date.now() - item[dateBy] < 60000 ? 2000 : 60000}- />+ <TimeSince+ style={{+ fontSize: SIZE.xs,+ color: colors.icon,+ marginRight: 6+ }}+ time={item[dateBy]}+ updateFrequency={Date.now() - item[dateBy] < 60000 ? 2000 : 60000}+ />+ </>+ ) : null}<IconButtontestID={notesnook.listitem.menu}diff --git a/apps/mobile/app/components/list-items/notebook/index.js b/apps/mobile/app/components/list-items/notebook/index.jsindex ea24465f0..165621d0a 100644--- a/apps/mobile/app/components/list-items/notebook/index.js+++ b/apps/mobile/app/components/list-items/notebook/index.js@@ -215,19 +215,24 @@ export const NotebookItem = ({alignItems: "center"}}>- <Paragraph- color={colors.icon}- size={SIZE.xs}- style={{- marginRight: 6- }}- >- {item && totalNotes > 1- ? totalNotes + " notes"- : totalNotes === 1- ? totalNotes + " note"- : "0 notes"}- </Paragraph>+ {compactMode ? (+ <>+ <Paragraph+ color={colors.icon}+ size={SIZE.xs}+ style={{+ marginRight: 6+ }}+ >+ {item && totalNotes > 1+ ? totalNotes + " notes"+ : totalNotes === 1+ ? totalNotes + " note"+ : "0 notes"}+ </Paragraph>+ </>+ ) : null}+<IconButtoncolor={colors.heading}name="dots-horizontal"