Skip to content

CSS improvements#103

Merged
zmoon merged 10 commits intomainfrom
css
Apr 16, 2026
Merged

CSS improvements#103
zmoon merged 10 commits intomainfrom
css

Conversation

@zmoon
Copy link
Copy Markdown
Owner

@zmoon zmoon commented Apr 16, 2026

Mainly for abcjs. Also restored (and improved) pandas df styling and added styling for ipywidgets in docs nbs to work with Furo's dark mode.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.34%. Comparing base (c2e595b) to head (7517f5c).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #103   +/-   ##
=======================================
  Coverage   94.34%   94.34%           
=======================================
  Files          15       15           
  Lines        1785     1786    +1     
=======================================
+ Hits         1684     1685    +1     
  Misses        101      101           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates styling and responsiveness behavior for the abcjs Jupyter widget, and restores/improves documentation CSS for pandas dataframe rendering and ipywidgets dark-mode compatibility.

Changes:

  • Add a responsive widget option wired through Python traitlets → JS render options, with CSS-variable-driven max-width behavior.
  • Rename the widget root CSS class to a less generic name and adjust overflow behavior to support horizontal scrolling.
  • Add/restore docs CSS for pandas tables and apply Furo-compatible overrides for embedded ipywidgets (including noUiSlider).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
pyabc2/abcjs/widget/index.js Adds responsive mode handling and clears lingering inline styles across re-renders.
pyabc2/abcjs/widget/index.css Switches to abcjs-widget-container root class and adjusts overflow/max-width behavior.
pyabc2/abcjs/widget/__init__.py Introduces responsive traitlet and exposes it in the interactive() control panel.
docs/_static/custom.css Restores pandas table styling and adds Furo-compatible dark-mode overrides for ipywidgets UI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyabc2/abcjs/widget/index.css Outdated
zmoon and others added 2 commits April 16, 2026 13:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zmoon zmoon merged commit 8deddcf into main Apr 16, 2026
6 checks passed
@zmoon zmoon deleted the css branch April 16, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants