π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
feat(ui): use the mimik mascot in the missing-image placeholder
Luis Ortize5177b1e1cd5
diff --git a/src/ui/fullview/TopNav.tsx b/src/ui/fullview/TopNav.tsxindex 64e7978..6a343a3 100644--- a/src/ui/fullview/TopNav.tsx+++ b/src/ui/fullview/TopNav.tsx@@ -2,8 +2,8 @@ import { ChevronRight, FileText, Search, Star, Trash2 } from 'lucide-react';import { i18n } from '#imports';import { useFullview } from '@/stores/fullview';import { Button } from '@/ui/components/ui/button';+import MascotIcon from '@/ui/shared/MascotIcon';import ExportMenu from '@/ui/sidepanel/ExportMenu';-import MascotIcon from './components/MascotIcon';import type { Route } from './router';import { navigate } from './router';diff --git a/src/ui/shared/ImagePlaceholder.tsx b/src/ui/shared/ImagePlaceholder.tsxindex ab6068f..aa460ad 100644--- a/src/ui/shared/ImagePlaceholder.tsx+++ b/src/ui/shared/ImagePlaceholder.tsx@@ -1,6 +1,6 @@-import { ImageOff } from 'lucide-react';import type { Screenshot } from '@/core/guides/types';import { resolveViewport } from '@/core/screenshot/geometry';+import MascotIcon from '@/ui/shared/MascotIcon';interface ImagePlaceholderProps {label: string;@@ -16,9 +16,7 @@ export default function ImagePlaceholder({ label, ratio = DEFAULT_RATIO, classNaclassName={`flex flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-border bg-secondary/60 ${className}`}style={{ aspectRatio: ratio }}>- <span className="flex items-center justify-center w-11 h-11 rounded-full bg-card text-muted-foreground shadow-sm">- <ImageOff size={19} />- </span>+ <MascotIcon size={64} /><span className="text-[12px] font-semibold text-muted-foreground">{label}</span></div>);diff --git a/src/ui/fullview/components/MascotIcon.tsx b/src/ui/shared/MascotIcon.tsxsimilarity index 100%rename from src/ui/fullview/components/MascotIcon.tsxrename to src/ui/shared/MascotIcon.tsx