Skip to content

Conversation

d3m1d0v
Copy link
Member

@d3m1d0v d3m1d0v commented Aug 18, 2025

  • Controls for adding rows and columns have been redesigned:
    • the vertical and horizontal plus buttons at the right and bottom edges of the table have been removed;
    • instead, floating plus buttons have been added near the top and left edges of the table for each row and column;
      • hover over dots to show and click plus button;
  • Menu controls for rows and columns have also been redesigned:
    • on hover over a row or column, the menu control will show a compact view. Hover over control to see a full-size button and icon;
    • drag the control to rearrange rows and columns;
    • сlick the control to open a dropdown-menu for the row or column;
    • a new action has been added to the dropdown-menu: "Clear cells".

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

@d3m1d0v d3m1d0v changed the title [WIP] feat(YfmTable): add drag-n-drop for table rows and columns feat(YfmTable): rework table controls – add drag-n-drop, rows and columns insertion Aug 28, 2025
@d3m1d0v d3m1d0v marked this pull request as ready for review August 28, 2025 13:58
@makhnatkin
Copy link
Collaborator

When you click and slightly move the mouse, the button flickers because a drag event starts, even though it was essentially an imprecise click (a click with a slight movement).

I suggest adding a threshold to check that the movement was minimal, and if the movement is small, it shouldn’t be considered a drag (a drag start threshold).

*
* @default true
*/
controls?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, there were controls in the mobile version as well, but now they are only in the full version.

I suggest we think about how the controls should work in the mobile version.

@d3m1d0v d3m1d0v merged commit f8fd37f into main Sep 15, 2025
5 checks passed
@d3m1d0v d3m1d0v deleted the yfm-table-dnd branch September 15, 2025 11:17
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

Successfully merging this pull request may close these issues.

3 participants