fix!: unexpected margins on widgets #947
Draft
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.
All Submissions:
pre-commit
prior to committing my changes (see development setup docs).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:
solara.HTML(tag='img', ...)
in our Image component, as opposed toipywidgets.Image
@maartenbreddels and @mariobuikhuizen (and others) feel free to offer your opinions on the matter.