fix(plugin): show global fallback warning, compact View Details button

This commit is contained in:
2026-07-13 06:39:09 +08:00
parent ef96766659
commit eedcf9efa6
@@ -125,14 +125,20 @@ export default function LibraryAppPanel({ appId, title, hardwareSlug, baseUrl }:
) : ( ) : (
<span style={{ opacity: 0.4, fontSize: "12px" }}>No data yet</span> <span style={{ opacity: 0.4, fontSize: "12px" }}>No data yet</span>
)} )}
{/* Device scope badge */}
<div style={{ fontSize: "10px", opacity: 0.4, marginTop: "2px" }}>
{detectedSlug ? detectedSlug : <span style={{ color: "#e0a030" }}> global (device not detected)</span>}
</div>
</div> </div>
</PanelSectionRow> </PanelSectionRow>
{/* View Details button */} {/* Compact View Details button */}
<PanelSectionRow> <PanelSectionRow>
<ButtonItem layout="below" onClick={() => openExternalUrl(gameUrl)}> <div style={{ display: "flex", justifyContent: "center", padding: "0 16px" }}>
View Details <ButtonItem layout="below" onClick={() => openExternalUrl(gameUrl)} style={{ width: "auto", minWidth: "120px" }}>
</ButtonItem> View Details
</ButtonItem>
</div>
</PanelSectionRow> </PanelSectionRow>
</> </>
) )