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
web: restrict tab drag/drop to horizontal axis
Abdullah Atta0eb9ae47e987
diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsxindex a2795cfde..e0a56230f 100644--- a/apps/web/src/components/editor/action-bar.tsx+++ b/apps/web/src/components/editor/action-bar.tsx@@ -73,6 +73,7 @@ import { useStore as useMonographStore } from "../../stores/monograph-store";import { useStore as useUserStore } from "../../stores/user-store";import { db } from "../../common/db";import { showPublishView } from "../publish-view";+import { restrictToHorizontalAxis } from "@dnd-kit/modifiers";export function EditorActionBar() {const editorMargins = useEditorStore((store) => store.editorMargins);@@ -607,6 +608,7 @@ function ReorderableList<T extends { id: string }>(measuring={{droppable: { strategy: MeasuringStrategy.Always }}}+ modifiers={[restrictToHorizontalAxis]}><SortableContext items={items} strategy={horizontalListSortingStrategy}>{items.map((item, index) => (