diff --git a/web/frontend/src/components/ExchangeResultImage.tsx b/web/frontend/src/components/ExchangeResultImage.tsx
index 79bc773..0b1a122 100644
--- a/web/frontend/src/components/ExchangeResultImage.tsx
+++ b/web/frontend/src/components/ExchangeResultImage.tsx
@@ -6,9 +6,10 @@ import { getExchangeImage } from '../utils/exchangeImage';
interface Props {
task: DouyuTaskItem;
onClick?: (task: DouyuTaskItem, url: string) => void;
+ variant?: 'compact' | 'detail';
}
-export default function ExchangeResultImage({ task, onClick }: Props) {
+export default function ExchangeResultImage({ task, onClick, variant = 'compact' }: Props) {
const [url, setUrl] = useState('');
const [failed, setFailed] = useState(false);
const [gen, setGen] = useState(0);
@@ -34,18 +35,40 @@ export default function ExchangeResultImage({ task, onClick }: Props) {
);
}
if (!url) return