fix(plugin): constrain View Details button width to 130px

This commit is contained in:
2026-07-13 06:55:44 +08:00
parent c02ae28982
commit 2a1943cf35
@@ -130,10 +130,12 @@ export default function LibraryAppPanel({ appId, title, hardwareSlug, baseUrl }:
{detectedSlug ? detectedSlug : <span style={{ color: "#e0a030" }}> global</span>} {detectedSlug ? detectedSlug : <span style={{ color: "#e0a030" }}> global</span>}
</span> </span>
</span> </span>
{/* View Details — compact gamepad button */} {/* View Details — constrained width */}
<DialogButtonPrimary onClick={() => openExternalUrl(gameUrl)} style={{ flexShrink: 0, whiteSpace: "nowrap" }}> <div style={{ flexShrink: 0, width: "130px" }}>
View Details <DialogButtonPrimary onClick={() => openExternalUrl(gameUrl)}>
</DialogButtonPrimary> View Details
</DialogButtonPrimary>
</div>
</div> </div>
</PanelSectionRow> </PanelSectionRow>
) )