Skip to content

Fix mobile delete visibility, colspan values, and MediaQuery syntax in user ratings page - #2

Draft
UrbaneD0ge with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-code-comments
Draft

Fix mobile delete visibility, colspan values, and MediaQuery syntax in user ratings page#2
UrbaneD0ge with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-code-comments

Conversation

Copilot AI commented Jul 2, 2026

Copy link
Copy Markdown

Three bugs in src/routes/user/[uuid]/+page.svelte from the responsive-table refactor: the mobile delete button was shown to all visitors (not just the owner), the "No ratings yet" colspan was wrong in all cases, and the MediaQuery string lacked required CSS parentheses.

Changes

  • MediaQuery syntax'min-width: 1024px''(min-width: 1024px)'; bare feature expressions without parentheses are invalid and can cause large.current to always be false

  • Mobile delete gate — wrapped the mobile-layout delete form in the same ownership check used on desktop (page.params.uuid === '$' + user.id); notes cell colspan is now dynamic (5 with delete, 6 without)

  • "No ratings yet" colspan — corrected from large.current ? 8 : 7 to account for all three cases:

    colspan={large.current ? (page.params.uuid === '$' + user.id ? 9 : 8) : 6}

    Desktop: 8 columns base, 9 with delete; mobile: 6 columns.

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bpdb Ready Ready Preview, Comment Jul 2, 2026 8:57pm

Copilot AI changed the title [WIP] Fix code as per review comments Fix mobile delete visibility, colspan values, and MediaQuery syntax in user ratings page Jul 2, 2026
Copilot AI requested a review from UrbaneD0ge July 2, 2026 20:57
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.

2 participants