Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple line editor #23

Closed
invisal opened this issue Mar 13, 2024 · 0 comments
Closed

Add multiple line editor #23

invisal opened this issue Mar 13, 2024 · 0 comments
Assignees

Comments

@invisal
Copy link
Collaborator

invisal commented Mar 13, 2024

Editing text in our app is so limited. We can only edit a single line editing. Let expand this functions to allow user to text using multiple line editor.

The multiple line editor that we will use will be CodeMirror.

How to enter multiple line editor

  • When double click
    • If the text length greater than 100, it will enter multiple line editor
    • If the text contains any new line, it will enter multiple line editor
  • Right click on the cell, show context menu with option "Edit in Full Editor"

How does it look like?

  • Click on gray area SHOULD NOT close the sheet
  • Click save will insert the value into the cell.
  • Click "Cancel" (I forgot in the screenshot), it will exit.

image

Related code:
https://github.com/invisal/libsql-studio/blob/develop/src/components/table-cell/TextCell.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants