Commit 146c30c
Fix collapse functionality bugs: CSS selectors, height parsing, and toggle bar creation (#300)
* Initial plan
* Initial analysis - understand collapse-## styling issue
Co-authored-by: mmcky <[email protected]>
* Fix collapse-## styling by removing hardcoded height
Remove hardcoded height: 22.4rem from collapse CSS to allow JavaScript dynamic height control based on tag_collapse-## class names.
Co-authored-by: mmcky <[email protected]>
* Implement single bottom bar collapse toggle for better UX
Replace separate "Show more/Show less" toggle links with integrated clickable bar at bottom of code cells. Maintains dynamic height control while providing more intuitive expand/collapse interaction.
Co-authored-by: mmcky <[email protected]>
* Relax Python version requirement from 3.13 to >=3.12 and update test matrix
Co-authored-by: mmcky <[email protected]>
* fix trim white space pre-commit
* Fix collapse functionality - correct CSS selectors and height parsing logic
Co-authored-by: mmcky <[email protected]>
* Simplify collapse button text and add scroll behavior when collapsing
Co-authored-by: mmcky <[email protected]>
* fix: pre-commit
* Improve collapse scroll behavior with better timing and comments
Co-authored-by: mmcky <[email protected]>
* Make collapse button text bold for better visibility
Co-authored-by: mmcky <[email protected]>
* fix pre-commit
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: mmcky <[email protected]>
Co-authored-by: mmcky <[email protected]>
Co-authored-by: Matt McKay <[email protected]>1 parent 988765c commit 146c30c
File tree
7 files changed
+6050
-6034
lines changed- .github/workflows
- src/quantecon_book_theme/assets
- scripts
- styles
7 files changed
+6050
-6034
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments