Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: add bottom line to show note being edited

Ammar Ahmeda0311c1516c8
diff --git a/apps/mobile/app/components/list-items/selection-wrapper/index.tsx b/apps/mobile/app/components/list-items/selection-wrapper/index.tsx
index 15fbac136..5de0a2285 100644
--- a/apps/mobile/app/components/list-items/selection-wrapper/index.tsx
+++ b/apps/mobile/app/components/list-items/selection-wrapper/index.tsx
@@ -25,6 +25,7 @@ import { useTabStore } from "../../../screens/editor/tiptap/use-tab-store";
import { useSelectionStore } from "../../../stores/use-selection-store";
import { DefaultAppStyles } from "../../../utils/styles";
import { Pressable } from "../../ui/pressable";
+import { View } from "react-native";
export function selectItem(item: Item) {
if (useSelectionStore.getState().selectionMode === item.type) {
@@ -112,6 +113,18 @@ const SelectionWrapper = ({
marginBottom: isSheet ? DefaultAppStyles.GAP_VERTICAL : undefined
}}
>
+ {isEditingNote ? (
+ <View
+ style={{
+ height: 5,
+ backgroundColor: color || colors.primary.accent,
+ position: "absolute",
+ bottom: 0,
+ left: 0,
+ right: 0
+ }}
+ />
+ ) : null}
{children}
</Pressable>
);
diff --git a/apps/mobile/app/components/list/card.tsx b/apps/mobile/app/components/list/card.tsx
index 97f8015d6..e363a3738 100644
--- a/apps/mobile/app/components/list/card.tsx
+++ b/apps/mobile/app/components/list/card.tsx
@@ -66,7 +66,7 @@ export const Card = ({
style={{
flexDirection: "row",
alignItems: "center",
- flexShrink: 1
+ width: "100%"
}}
>
<View
@@ -109,25 +109,6 @@ export const Card = ({
</Paragraph>
</View>
</View>
-
- {fontScale > 1 ? null : (
- <View
- style={{
- width: 40,
- height: 40,
- justifyContent: "center",
- alignItems: "center"
- }}
- >
- <Icon
- name="chevron-right"
- color={
- messageBoardState.type === "error" ? colors.error.icon : color
- }
- size={AppFontSize.lg}
- />
- </View>
- )}
</Pressable>
</View>
);