Skip to content

feat(webui): add "Reset column sizes" button to grid toolbars #1308

@mohamadyasser118

Description

@mohamadyasser118

Users who resize columns have no way to go back to the default layout
without manually clearing localStorage in the browser devtools.

So I suggest adding an optional "Reset column sizes" button to the shared GridToolbar
component. When clicked, it calls resetColumnSizes() from useGridState
and restores all columns to their default widths.

I would prefer to know the state of #1278 before working on this, so it would be great to review it.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions