Improve/fix the composition area for long texts #443

Open
opened 2023-08-10 04:59:05 +12:00 by dtonon · 4 comments
dtonon commented 2023-08-10 04:59:05 +12:00 (Migrated from github.com)
  1. If the text is longer than the text area height it extends to fill the viewport, this could be optimized limiting it to 50/60% so the user can see the original content while he is replying to; maybe good option could be allow him to drag it manually.

  2. When reaching the 100% height the user is unable to scroll the content.

/cc @bu5hm4nn

1) If the text is longer than the text area height it extends to fill the viewport, this could be optimized limiting it to 50/60% so the user can see the original content while he is replying to; maybe good option could be allow him to drag it manually. 2) When reaching the 100% height the user is unable to scroll the content. /cc @bu5hm4nn
mikedilger commented 2023-09-29 15:55:49 +13:00 (Migrated from github.com)

I put in a fix for this in these three commits:

e50f885a2b
then
1b7c48b73f
then
c06bbef2e9

The thing you are replying to can be tipped closed now. The area is scrollable to your post can be very long now.

I put in a fix for this in these three commits: e50f885a2be394d03d5e7bde91842fea8f6999f3 then 1b7c48b73f9c0d0f2f62f675267887359cb273fe then c06bbef2e990beeacd736f0eebe171cb46d2f703 The thing you are replying to can be tipped closed now. The area is scrollable to your post can be very long now.
dtonon commented 2023-09-29 23:13:17 +13:00 (Migrated from github.com)

@mikedilger the scrolling works well!
The compose area is resizable dragging the top line, but it does not keep the new height, is it needed or can be fixed?

Great idea let the user managing the quoted message visibility.
It remembers the last state (open/close)?
If I'm not wrong the starting view is opened; in this case the compose can be hidden at the bottom:

Screenshot 2023-09-29 alle 11 39 50

I would start it alway closed (the user can alway see it in the background) updating the text in the top-left corner:


Repying to bob - View the message


When the user click the link it switch to "Hide the message"

@mikedilger the scrolling works well! The compose area is resizable dragging the top line, but it does not keep the new height, is it needed or can be fixed? Great idea let the user managing the quoted message visibility. It remembers the last state (open/close)? If I'm not wrong the starting view is opened; in this case the compose can be hidden at the bottom: <img width="978" alt="Screenshot 2023-09-29 alle 11 39 50" src="https://github.com/mikedilger/gossip/assets/89577423/9cacd686-e76d-42f5-af27-61deae6a6a2e"> I would start it alway closed (the user can alway see it in the background) updating the text in the top-left corner: --- Repying to bob - [View the message](#) --- When the user click the link it switch to "Hide the message"
mikedilger commented 2023-09-30 07:02:16 +13:00 (Migrated from github.com)

It is not perfect yet, let's reopen. I think it starts in the state it was in last time.

It is not perfect yet, let's reopen. I think it starts in the state it was in last time.
bu5hm4nn commented 2023-10-03 10:25:10 +13:00 (Migrated from github.com)

I personally would prefer composing a reply in the thread, below whatever you are replying to, similar to how the UI is on Facebook web. Top compose would be for original post and reposts. This would require us to abstract out a "compose widget" that can be shown both places.

I personally would prefer composing a reply in the thread, below whatever you are replying to, similar to how the UI is on Facebook web. Top compose would be for original post and reposts. This would require us to abstract out a "compose widget" that can be shown both places.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#443
No description provided.