AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

Row Expansion/Collapse Behavior in Table

Open jevinjojo opened this issue 7 months ago • 4 comments

Description

Currently, the table's first row expands/collapses correctly when clicked anywhere on the row. However, the remaining rows only expand/collapse when clicking the arrow icon which is not user friendly.

https://github.com/user-attachments/assets/9a36489f-1457-45e9-9945-cf0265478398

Use case

Expected Output. Making all rows expand/collapse on entire row click (not the arrow).

https://github.com/user-attachments/assets/116728db-ad52-4508-8d07-d2bacb2bc96e

Anything else?

No response

Are you willing to submit a PR?

  • [x] Yes I'd like to help by submitting a PR!

jevinjojo avatar May 10 '25 17:05 jevinjojo

Issue Status: 💬 To be Discussed

💬 To be Discussed

We need some time to discuss the issue.

This is an automatic reply by the bot.

affine-issue-bot[bot] avatar May 10 '25 17:05 affine-issue-bot[bot]

@hwangdev97 @Saul-Mirone I would like work on this issue if this is required. Can I get it assigned and would like to create a PR ?

jevinjojo avatar May 10 '25 17:05 jevinjojo

@jevinjojo thanks for your interesting. Clicking to expand a folder is reasonable, but not suitable for docs, instead of opening in editor. we need a discussion.

forehalo avatar May 14 '25 02:05 forehalo

Yep, it makes sense to click on a folder to expand it. It's also reasonable to prioritize opening documents when clicking on a doc. So, I don't think any adjustments are necessary for now.

hwangdev97 avatar May 29 '25 07:05 hwangdev97