Skip to content

Commit a09aeaa

Browse files
Merge pull request #11 from DeDuckProject/claude/fix-mobile-gif-preview-DP7gy
fix: add direct link fallback below GIF/screenshot for mobile
2 parents a0ad4b6 + 3d77841 commit a09aeaa

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
@@ -115,9 +115,11 @@ function buildCommentBody(options: CommentOptions): string {
115115
: '';
116116

117117
const mediaSection = recordingUrl
118-
? `![Demo](${recordingUrl})`
118+
? `![Demo](${recordingUrl})\n\n[📱 Can't see the preview? Open it directly](${recordingUrl})`
119119
: screenshots && screenshots.length > 0
120-
? screenshots.map((s, i) => `![Screenshot ${i + 1}](${s})`).join('\n')
120+
? screenshots
121+
.map((s, i) => `![Screenshot ${i + 1}](${s})\n\n[📱 Can't see screenshot ${i + 1}? Open it directly](${s})`)
122+
.join('\n\n')
121123
: '_No recording available._';
122124

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

0 commit comments

Comments
 (0)