Skip to content

🐛(frontend) add actions menu on mobile My Files page#657

Open
PanchoutNathan wants to merge 3 commits intomainfrom
fix/imposible-to-open-share-modal-mobile
Open

🐛(frontend) add actions menu on mobile My Files page#657
PanchoutNathan wants to merge 3 commits intomainfrom
fix/imposible-to-open-share-modal-mobile

Conversation

@PanchoutNathan
Copy link
Copy Markdown
Contributor

Summary

  • Add a "..." (more_vert) dropdown menu on the mobile
    My Files page with "New folder", "Import files" and
    "Import folders" options
  • Add includeCreate option to useCreateMenuItems
    hook to allow excluding document creation items
  • Replace SVG/material-icons with ui-kit icon components
    in action menu items
  • Add e2e tests for mobile actions menu

The more_vert button was only shown inside folders
on mobile. This adds a dropdown with create folder
and import options on the My Files default route.
Also adds includeCreate option to useCreateMenuItems
to allow excluding document creation items.
Test that My Files shows the more menu with create
folder and import options on mobile viewport.
Test that the more menu button is visible inside
a folder on mobile viewport.
Swap SVG imports and material-icons spans for
dedicated ui-kit icon components (Shared, Download,
Copy, Star, Edit, ArrowRight, Info, Trash, etc).
Add dropdown menu icon sizing style.
@PanchoutNathan PanchoutNathan self-assigned this Apr 10, 2026
@PanchoutNathan PanchoutNathan linked an issue Apr 10, 2026 that may be closed by this pull request
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@NathanVss NathanVss left a comment

Choose a reason for hiding this comment

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

LGTM, please see the comment about icon size

Comment on lines +112 to +115
.c__dropdown-menu-item__icon {
width: 20px;
height: 20px;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This hardcoded override is not needed, the Figma sketches are 24x24: https://www.figma.com/design/XDjWHDLIiNY4mtpyj21EVK/Drive?node-id=12066-24411&t=Rrmt2DvJtCAgXwkq-0

You can use IconSize.MEDIUM sized icons.

{t(defaultRouteData.label)}
{t(defaultRouteData.label)}
</div>
{defaultRouteId === DefaultRoute.MY_FILES && (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is a dependency inversion pattern here. The consumer of this component should tell him what to display, not the opposite.

I think we can live with that at this small scale .. but not huge fan

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.

Impossible to open share modal on mobile

2 participants