diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-06-25 01:56:34 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-06-25 01:56:34 -0400 |
commit | 434fe9b5f27a14dc7bddeea9628abe4aaa62ce21 (patch) | |
tree | a97e2c3f0e8b1188405b65b69f042d57e42a5f19 | |
parent | 6a3d0cc899020710d5b9aabe164649c686467024 (diff) |
scrolling for field text
-rw-r--r-- | src/client/views/EditableView.scss | 8 | ||||
-rw-r--r-- | src/client/views/collections/collectionSchema/SchemaCellField.tsx | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/client/views/EditableView.scss b/src/client/views/EditableView.scss index d2f11f5e1..fa4542ac4 100644 --- a/src/client/views/EditableView.scss +++ b/src/client/views/EditableView.scss @@ -3,11 +3,17 @@ overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; - overflow: hidden; + overflow-y: auto; height: 100%; width: 100%; min-width: 20; text-overflow: ellipsis; + -ms-overflow-style: none; + scrollbar-width: none; +} + +.editableView-container-editing::-webkit-scrollbar { + display: none; } .editableView-container-editing-oneLine { diff --git a/src/client/views/collections/collectionSchema/SchemaCellField.tsx b/src/client/views/collections/collectionSchema/SchemaCellField.tsx index ea46fb432..9d9fcbd1f 100644 --- a/src/client/views/collections/collectionSchema/SchemaCellField.tsx +++ b/src/client/views/collections/collectionSchema/SchemaCellField.tsx @@ -94,6 +94,10 @@ export class SchemaCellField extends ObservableReactComponent<SchemaCellFieldPro this.finalizeEdit(false, true, false); } + // @computed get lastChar(){ + // this. + // } + generateSpan = (text: string, cell: HTMLDivElement | undefined) => { return `<span style="color: ${cell?.style.borderTop.replace('2px solid', '')}">${text}</span>` } |