Skip to content

Horizontal bar for viewing horizontally long svgs (instead of scaling) #3085

Discussion options

You must be logged in to vote

Full width for PlutoUI.Resource

If you use PlutoUI.Resource or PlutoUI.LocalResource, you can override the max-width attribute from Pluto:

img = PlutoUI.Resource(url, :style => "max-width: unset")

Full width for any image

A more general solution that also works for other types of images:

full_width(content) = PlutoUI.ExperimentalLayout.Div([img]; style="width: max-content")

# then in another cell:
full_width(my_image_or_plot)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@VarLad
Comment options

@VarLad
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fonsp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants