docs: Pages gallery polish — version/PyPI, energy-diagram aspect, centered viewers - #58
Merged
Merged
Conversation
- Fix stale version badge in the Pages nav (v0.3 -> v0.7.0) and link it to PyPI; add a PyPI nav link and a "pip install quantui" hero pill. - Aspartame orbital energy diagram regenerated at half the vertical height (8x4, dpi 170) for a cleaner aspect ratio. - Replace the cisplatin trajectory iframe with an animated GIF (centered, constant scale, 22 frames) so the animation shows at a glance without scrolling to reach the playback controls; "Open interactive" still links the full 3D page. - Make the embedded benzene vibrational-mode viewer fill the iframe (container width:100%/height:100vh + full-height body) so 3Dmol's zoomTo centers it instead of clipping the molecule. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The offline ASE matplotlib render looked flat/cartoonish next to the app's 3Dmol view (and no headless 3Dmol renderer is available here). Revert the trajectory tile to the real interactive 3Dmol viewer instead of a GIF, and frame it like the benzene one so the molecule is centered and the playback controls are visible without scrolling: the embedded viewer's card + canvas go full-width, the canvas is 300px tall (leaving room for the control bar), body padding trimmed, and the gallery iframe is 400px. zoomTo centers the molecule. Removes the unused GIF. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #57 (merged) — polishes the GitHub Pages example gallery per review feedback:
v0.3→v0.7.0) and link it to PyPI; add a PyPI nav link and apip install quantuihero pill.zoomTocenters the molecule instead of clipping it — the benzene vibrational mode was badly clipped, and the cisplatin trajectory's playback controls sat below the fold. The trajectory canvas is sized to leave room for its control bar, and the gallery iframes are taller (400px).A quick note on the trajectory: I tried an autoplaying GIF, but the only renderer available offline here (ASE's matplotlib backend) looks flat/cartoonish next to the real 3Dmol view, and there's no headless browser in this environment to capture the actual viewer. So the trajectory stays the real interactive 3Dmol viewer, just framed so it reads at a glance.
Test plan
Docs-only change; the Pages deploy triggers on merge to
main.