mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 16:28:46 +00:00
fix: fix value editor scrolling and add selection highlight
- Fix value editor not scrollable when content exceeds container (overflow-hidden -> overflow-auto) - Extract vscodeSelectionLayer from QueryEditor into shared module and apply to value editor for consistent selection highlighting
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
highlightSpecialChars,
|
||||
highlightActiveLine,
|
||||
} from "@codemirror/view";
|
||||
import { vscodeSelectionLayer } from "@/lib/codemirrorVscodeSelectionLayer";
|
||||
import { json } from "@codemirror/lang-json";
|
||||
import { defaultKeymap, history, historyKeymap } from "@codemirror/commands";
|
||||
import { bracketMatching } from "@codemirror/language";
|
||||
@@ -81,6 +82,7 @@ export function useCellDetailEditor(options: UseCellDetailEditorOptions): UseCel
|
||||
highlightSpecialChars(),
|
||||
history(),
|
||||
drawSelection(),
|
||||
vscodeSelectionLayer(),
|
||||
dropCursor(),
|
||||
highlightActiveLine(),
|
||||
EditorView.theme({
|
||||
|
||||
Reference in New Issue
Block a user