Skip to content

Embedded screenshots in docs are very large #225

Closed

Description

@mwaskom

Was just looking at the docs and the screenshots now take up considerable more space than I remember.

For example: https://pysurfer.github.io/auto_examples/plot_fmri_activation.html

Here's how it looks to me with my Chrome set to 100% zoom:

screenshot 2018-02-03 15 08 15

Doesn't seem limited to that example.

Did this change when the docs moved to sphinx-gallery? Can the size of the embedded image be controlled (as I assume it used to be?) Having the figures spill over into the sidebar looks messy.

Activity

  1. larsoner commented on Feb 5, 2018

    @larsoner
    Contributor

    Yes this would have happened when going to sphinx-gallery.

    I don't think there is a way to control the size in SG, as its output matches the one you would get running the script, in this case a 800x800 image.

    Once sphinx-gallery/sphinx-gallery#210 lands in SG we can fix this with max-width: 100% in the CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions