mobile: fix tablet bugs

This commit is contained in:
Ammar Ahmed
2025-03-14 17:37:42 +05:00
parent fba3cc442a
commit 181ad335d8
3 changed files with 11 additions and 4 deletions

View File

@@ -70,6 +70,15 @@ Pro: ${PremiumService.get()}
Logged in: ${user ? "yes" : "no"}`,
userId: user?.id
});
if (!issueUrl.current) {
setLoading(false);
ToastManager.show({
heading: "Failed to report issue on github",
type: "error",
context: "local"
});
return;
}
setLoading(false);
body.reset();
title.reset();

View File

@@ -136,9 +136,6 @@ const LinkNotebooks = (props: NavigationProps<"LinkNotebooks">) => {
})();
}, [loadRootNotebooks, loading]);
const selectedItemsList = useSelectionStore(
(state) => state.selectedItemsList
);
const multiSelect = useNotebookSelectionStore((state) => state.multiSelect);
const hasSelection = useNotebookSelectionStore((state) =>
@@ -285,7 +282,7 @@ const LinkNotebooks = (props: NavigationProps<"LinkNotebooks">) => {
/>
{hasSelection ? (
<FloatingButton icon="check" onPress={() => onSave()} />
<FloatingButton icon="check" alwaysVisible onPress={() => onSave()} />
) : null}
</SafeAreaView>
);

View File

@@ -185,6 +185,7 @@ export const MoveNotes = (props: NavigationProps<"MoveNotes">) => {
{selectionCount ? (
<FloatingButton
icon="check"
alwaysVisible
onPress={async () => {
await db.notes?.addToNotebook(
currentNotebook.id,