Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: unexpected margins on widgets #947

Draft
wants to merge 2 commits into
base: 12-23-feat_change_mutation_detection_and_allow_reactive_boolean_defaults
Choose a base branch
from

Conversation

iisakkirotko
Copy link
Collaborator

All Submissions:

Description of changes

Fixes #691.

A visually breaking change to the way widgets are rendered. By default they get a margin as determined by --jp-widgets-margin: 2px, but I think in combination with Vuetify this is often unexpected.
Overall I don't think there would be very many cases where this would be worse than the current implementation.

In the end I think the underlying issue is that ipywidgets based components are quite difficult to style, since they don't accept a style argument like we usually use.

However, I get if we prefer to stick as close as possible to vanilla jupyter widgets settings, in which case we could do one of two other things:

  • Use solara.HTML(tag='img', ...) in our Image component, as opposed to ipywidgets.Image
  • Scope the change to just Solara's Image component via a custom class

@maartenbreddels and @mariobuikhuizen (and others) feel free to offer your opinions on the matter.

BREAKING CHANGE: an error is now raised if a reactive variable (not its value) is used in boolean comparisons
BREAKIGN CHANGE: mutation detection is now enabled by default
Copy link
Collaborator Author

iisakkirotko commented Dec 23, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@iisakkirotko iisakkirotko force-pushed the 12-23-fix_unexpected_margins_on_widgets branch from 8e5c5dd to c0cc2b5 Compare December 23, 2024 10:19
@iisakkirotko iisakkirotko changed the base branch from 05-21-refactor_streamline_and_improve_applayout_api to 12-23-feat_change_mutation_detection_and_allow_reactive_boolean_defaults December 23, 2024 10:19
@iisakkirotko iisakkirotko force-pushed the 12-23-feat_change_mutation_detection_and_allow_reactive_boolean_defaults branch from 3a90256 to 3cdb9d4 Compare December 23, 2024 15:52
@iisakkirotko iisakkirotko force-pushed the 12-23-feat_change_mutation_detection_and_allow_reactive_boolean_defaults branch from 3cdb9d4 to 03b2dcd Compare December 27, 2024 12:56
@iisakkirotko iisakkirotko added this to the Solara 2.0 milestone Dec 27, 2024
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.

1 participant