From d68eaa7a41907eedf296213a23d62ea0ee93f1e6 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 8 Jun 2023 15:53:43 +0500 Subject: [PATCH] mobile: increase compactness of compact mode --- .../app/components/list-items/note/index.js | 369 +++++++++++------- .../list-items/selection-wrapper/index.js | 2 +- .../list-items/selection-wrapper/selection.js | 18 +- 3 files changed, 236 insertions(+), 153 deletions(-) diff --git a/apps/mobile/app/components/list-items/note/index.js b/apps/mobile/app/components/list-items/note/index.js index 328c11a7c..9f0818da3 100644 --- a/apps/mobile/app/components/list-items/note/index.js +++ b/apps/mobile/app/components/list-items/note/index.js @@ -178,16 +178,29 @@ const NoteItem = ({ ) : null} - - {item.title} - + {compactMode ? ( + + {item.title} + + ) : ( + + {item.title} + + )} {item.headline && !compactMode ? ( ) : null} - - {!isTrash ? ( - <> - {item.conflicted ? ( - + {!isTrash ? ( + <> + {item.conflicted ? ( + + ) : null} + - ) : null} - - {attachmentCount > 0 ? ( - 0 ? ( + + + + {attachmentCount} + + + ) : null} + + {item.pinned ? ( + + ) : null} + + {item.locked ? ( + + ) : null} + + {item.favorite ? ( + + ) : null} + + {!isTrash && !compactMode && tags + ? tags.map((item) => + item.id ? ( +