Skip to content

Resize all inputs at the same time in recordedit #2336

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

Open
jrchudy opened this issue Jul 15, 2023 · 1 comment
Open

Resize all inputs at the same time in recordedit #2336

jrchudy opened this issue Jul 15, 2023 · 1 comment
Labels
help wanted Intended for internal use for student workers investigation required Requires some initial investigation recordedit UI problems related to UI

Comments

@jrchudy
Copy link
Member

jrchudy commented Jul 15, 2023

This was initially brought up in for the case when one longtext input is adjusted. We want to provide a way for all longtext inputs to resize at the same time. Since we are going to change text to textarea in issue #1948 , this solution can be applied in the general case to all inputs.

We also want to consider that instead of just resizing inputs, maybe this control is for resizing the "row" similar to how excel and google sheets allow resizing a row by hovering on the border of the far left column:
image

Notes

2 things to consider:

  • now that most of our inputs will be type textarea, is there a way to remove the grip icon on the bottom left of the input or would that degrade the UI
  • How should inputs with controls behave?
    • should we not allow resizing these row?
      • foreign key, asset, boolean might benefit since the content can overflow the input
    • Should the control attached to the inputs expand too?
@jrchudy jrchudy added help wanted Intended for internal use for student workers recordedit UI problems related to UI investigation required Requires some initial investigation labels Jul 15, 2023
@jrchudy
Copy link
Member Author

jrchudy commented Oct 22, 2024

One solution that came up while discussing this more today was using a ResizeObserver. When that recordedit table "row" is resized (1 of the textarea inputs is stretching to increase the height of the whole row), the whole row has a ResizeObserver that watches for this. When this happens, set the size of all other textarea inputs to match the height of the one being resized.

Stackoverflow link that discusses this solution (other solution is flex but unsure if it will work):
https://stackoverflow.com/questions/69283263/match-the-size-of-two-textarea-elements-when-one-of-them-changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Intended for internal use for student workers investigation required Requires some initial investigation recordedit UI problems related to UI
Projects
None yet
Development

No branches or pull requests

1 participant