feat(webapp): two-row FileRow layout for mobile#726
Merged
Conversation
Member
Author
|
docker deploy |
|
🚀 Deployment Successful! The instance at plik.root.gg has been redeployed with image |
cc01344 to
315ad8f
Compare
On narrow screens (< md breakpoint), the file list row was showing a severely truncated filename due to all elements — icon, name, size, and action buttons — competing for space in a single flex row. Restructure FileRow.vue to use a two-row layout on mobile: - Row 1: file icon + full filename (takes full width, wraps naturally) - Row 2: file size on the left; action buttons pushed to the right via a flex-1 spacer (hidden on md+) On md+ screens the layout is unchanged: everything stays inline on a single row. Button text labels (View / Download / Decrypt) remain hidden on mobile (icon-only) since the row is compact. Update webapp/ARCHITECTURE.md to document the new responsive pattern.
315ad8f to
ee62dcb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Restructures the
FileRowcomponent to use a two-row layout on mobile devices (screens narrower than themdTailwind breakpoint, ~768px).Mobile layout:
flex-1 md:hiddenspacerDesktop layout (md+): unchanged — all elements remain on a single inline row as before.
Why
On narrow screens, all elements (icon, name, size, action buttons) were competing for space in a single flex row, causing file names to be severely truncated and unreadable. The new layout ensures the filename is always fully visible on mobile while keeping the desktop experience identical.
Changes
webapp/src/components/FileRow.vue— restructured template withflex-col md:flex-rowouter container;flex-1 md:hiddenspacer in the second row pushes buttons to the right edge on mobilewebapp/ARCHITECTURE.md— updated Responsive Layout section to document the new FileRow patternTesting
make frontend✅make test-frontend(234 tests) ✅