Skip to content

Conversation

Ayushjhawar8
Copy link
Contributor

@Ayushjhawar8 Ayushjhawar8 commented Sep 7, 2025

Fix: circuit preview layout

  • Cleaned up the container so previews (pcb, schematic, 3d) render consistently

  • Moved background color logic to the parent <div> to avoid breaking docs

  • Double-checked that all previews display correctly and the docs look fine again

image image

Copy link

vercel bot commented Sep 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Sep 7, 2025 4:49pm

@Ayushjhawar8
Copy link
Contributor Author

Addresses: #131 #129

@seveibar
Copy link
Contributor

seveibar commented Sep 7, 2025

ty sir /tip $20

Copy link

algora-pbc bot commented Sep 7, 2025

🎉🎈 @Ayushjhawar8 has been awarded $20 by tscircuit! 🎈🎊

@Ayushjhawar8
Copy link
Contributor Author

Ayushjhawar8 commented Sep 7, 2025

Hey Seve, sorry for the inconvenience! The earlier change added unnecessary complexity to the preview containers, which ended up breaking the docs. This PR simplifies the structure by handling background color at the parent level and keeping scaling consistent.

I’ve tested across pcb, schematic, and 3d views, and the docs render correctly now. Could you please take a look at the preview deployment and confirm that it resolves the issue on your side?

@seveibar seveibar merged commit 5038f33 into tscircuit:main Sep 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants