File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,14 +165,16 @@ export function ExportPanel({
165165 < button
166166 type = "button"
167167 onClick = { handleDownloadBadge }
168- disabled = { ! hasUsername || isDownloading }
168+ disabled = { ! hasUsername || isDownloading || format === 'action' }
169169 aria-label = {
170- hasUsername
171- ? 'Download custom monolith layout as an image'
172- : 'Add a GitHub username to enable image downloads'
170+ ! hasUsername
171+ ? 'Add a GitHub username to enable image downloads'
172+ : format === 'action'
173+ ? 'Download is not available in GitHub Action mode'
174+ : 'Download custom monolith layout as an image'
173175 }
174176 className = { `relative inline-flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all duration-200 ${
175- ! hasUsername || isDownloading
177+ ! hasUsername || isDownloading || format === 'action'
176178 ? 'bg-gray-200/90 border border-black/10 text-gray-500 cursor-not-allowed dark:bg-white/10 dark:border-white/10 dark:text-white/35'
177179 : 'bg-emerald-500/10 border border-emerald-500/30 text-emerald-500 hover:bg-emerald-500/20 hover:scale-[1.03] active:scale-[0.97]'
178180 } `}
@@ -198,7 +200,11 @@ export function ExportPanel({
198200 </ >
199201 ) }
200202 </ svg >
201- { isDownloading ? 'Downloading...' : 'Download Badge' }
203+ { format === 'action'
204+ ? 'Download Not Available'
205+ : isDownloading
206+ ? 'Downloading...'
207+ : 'Download Badge' }
202208 </ button >
203209
204210 { /* Clipboard Copy Button */ }
You can’t perform that action at this time.
0 commit comments