Skip to content

Commit 809140b

Browse files
committed
fix: add direct link fallback below GIF/screenshot for mobile
GitHub's mobile app often fails to render GIFs hosted on release assets, showing a '?' icon instead. Add a direct link below each image so mobile users can tap through to view the media even when the inline preview breaks. https://claude.ai/code/session_01BTKvyujzohhVZiJbTtTcMG
1 parent 81a0e76 commit 809140b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/core/src/publisher/github-comment.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ function buildCommentBody(options: CommentOptions): string {
7272
: '';
7373

7474
const mediaSection = recordingUrl
75-
? `![Demo](${recordingUrl})`
75+
? `![Demo](${recordingUrl})\n\n[📱 Can't see the preview? Open it directly](${recordingUrl})`
7676
: screenshots && screenshots.length > 0
77-
? screenshots.map((s, i) => `![Screenshot ${i + 1}](${s})`).join('\n')
77+
? screenshots
78+
.map((s, i) => `![Screenshot ${i + 1}](${s})\n\n[📱 Can't see screenshot ${i + 1}? Open it directly](${s})`)
79+
.join('\n\n')
7880
: '_No recording available._';
7981

8082
const rerunSection = rerunUrl ? `\n\n[↺ Re-run demo](${rerunUrl})` : '';

0 commit comments

Comments
 (0)