dbeaver/pro#9407 fix: long values wrapping (#4364)

we mimic here the old input's behaviour, when we can't see the scroll but can navigate through the 1-line value with keyboard or mouse drag/selection

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
Sychev Andrey
2026-05-27 20:38:22 +02:00
committed by GitHub
co-authored by Evgenia
parent c14e8f5ce3
commit a817dcd92f
2 changed files with 8 additions and 0 deletions
@@ -1,6 +1,13 @@
:global(.rdg-cell) .editor {
appearance: none;
resize: none;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
box-sizing: border-box;
min-height: initial;
@@ -45,6 +45,7 @@ export function TextEditor({ rowIdx, colIdx, onClose }: IProps) {
ref={autoFocusAndSelect}
className={classes['editor']}
rows={1}
wrap="off"
value={value}
onChange={event => cellContext?.onCellChange?.(rowIdx, colIdx, event.target.value)}
onBlur={() => onClose()}