mirror of
https://github.com/qctsu/obsidian-file-shift.git
synced 2026-07-22 06:14:30 +00:00
Previously the plugin blocked all drag events in file explorer, preventing native move-into-folder behavior. Now uses 3-zone detection on folder targets: - Top 25%: reorder above - Middle 50%: move into folder (Obsidian native) - Bottom 25%: reorder below Also adds visual highlight when targeting folder center zone. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26 lines
538 B
CSS
26 lines
538 B
CSS
/* FileShift — visual indicators */
|
|
|
|
/* Drop zone indicators */
|
|
.fs-drop-above {
|
|
box-shadow: 0 -2px 0 0 var(--interactive-accent) !important;
|
|
}
|
|
|
|
.fs-drop-below {
|
|
box-shadow: 0 2px 0 0 var(--interactive-accent) !important;
|
|
}
|
|
|
|
/* Drop INTO folder indicator */
|
|
.fs-drop-into {
|
|
background-color: hsla(var(--interactive-accent-hsl), 0.15) !important;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Item being dragged */
|
|
.fs-dragging {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
/* Active ribbon icon */
|
|
.side-dock-ribbon-action.fs-active {
|
|
color: var(--interactive-accent);
|
|
}
|