mirror of
https://github.com/TautvydasDerzinskas/Thingport.git
synced 2026-10-18 20:59:55 -05:00
fix(models): stop the hidden preview renderer from blocking description clicks (#13)
The automatic preview renderer on the model page sits in an invisible box whose sx width/height of 1 resolve to 100%, so it covers the Description and Tags and swallows clicks on their links. Let pointer events pass through it. Fixes #12 Claude-Session: https://claude.ai/code/session_01KGCb65Zhzwd3daF862ZE6R Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6993a4c423
commit
76907212d4
1 file changed
+4
-1
@@ -301,7 +301,10 @@ export default function ModelDetailPage({ theme, onSelectCategory, onUnauthorize
|
||||
)}
|
||||
|
||||
{needsGeneratedPreview && firstPlate && (
|
||||
<Box sx={{ position: "absolute", width: 1, height: 1, overflow: "hidden", opacity: 0 }} aria-hidden="true">
|
||||
<Box
|
||||
sx={{ position: "absolute", width: 1, height: 1, overflow: "hidden", opacity: 0, pointerEvents: "none" }}
|
||||
aria-hidden="true"
|
||||
>
|
||||
<ModelSnapshot
|
||||
url={printsApi.fileUrl(firstPlate.url)}
|
||||
ext={extOf(firstPlate.filename)}
|
||||
|
||||
Reference in new issue
Block a user