Skip to content

fix: add spacing between text and link icon in bug report page - #1936

Open
paramveeRana wants to merge 1 commit into
NIAEFEUP:developfrom
paramveeRana:fix/bug-report-icon-spacing
Open

paramveeRana wants to merge 1 commit into
NIAEFEUP:developfrom
paramveeRana:fix/bug-report-icon-spacing

Conversation

@paramveeRana

@paramveeRana paramveeRana commented Oct 15, 2026 •

Copy link
Copy Markdown

Closes #1931

Adds spacing between the text and the link icon in the GitHub card on the bug report page, and moves that card into a reusable LinkCard in uni_ui so other link cards can use it.

Before / after (larger text size):
before-pt after-pt

Summary by CodeRabbit

  • New Features

    • Added a reusable link card that displays an icon, title, subtitle, and external-link indicator, with optional tap behavior.
  • Improvements

    • Updated the bug report page’s GitHub feedback link to use the new link card while continuing to open the same destination externally.

The GitHub callout on the bug report page had no gap between its text
and the trailing link icon, so long lines (e.g. with a larger font size)
ran right into the icon. Move the callout into a reusable LinkCard in
uni_ui and add spacing before the icon.

Closes NIAEFEUP#1931
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 75887fee-730d-4ba1-97c9-05382b971287
📥 Commits

Reviewing files that changed from the base of the PR and between 14b1e16 and 4d71b3f.

📒 Files selected for processing: 2
  • packages/uni_app/lib/view/bug_report/bug_report.dart
  • packages/uni_ui/lib/cards/link_card.dart

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The change adds a reusable LinkCard widget to uni_ui and uses it for the GitHub feedback link on the bug report page.

Changes: Link Card

Layer / File(s) Summary
Add LinkCard
packages/uni_ui/lib/cards/link_card.dart
Adds a GenericCard-based widget with an icon, title, subtitle, trailing open-in-new icon, tooltip, optional tap callback, and configurable margin.
Use LinkCard on the bug report page
packages/uni_app/lib/view/bug_report/bug_report.dart
Replaces the custom GitHub link layout with LinkCard. The link retains its text, tooltip, URL, and external-launch behavior.

Priority: ⬇️ Low

Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to 4d71b

The GitHub card adds spacing before its external-link icon while keeping its text constrained. No actionable merge-blocking risk is established.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly describes the primary user-facing change: adding spacing between the bug report text and link icon.
Description check Passed The description identifies issue #1931, summarizes the spacing fix and reusable LinkCard change, and includes before-and-after screenshots. It does not complete the template checklist for testing and …
Linked Issues check Passed Issue [#1931] requires spacing between the GitHub callout text and link icon, plus a reusable card in uni_ui. LinkCard adds a SizedBox(width: 16) between the expanded text and `Icons.open_in_new…
Out of Scope Changes check Passed The reviewed changes add LinkCard and replace the bug report page's GitHub card with that component. The tap behavior and GitHub destination remain part of the same callout. No unrelated change is e…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
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.

ui: Fix spacing between text and icon in bug report page

1 participant