Skip to content

full-width container doesn't use full width #905

Description

@lennartS-lfb

Describe the bug

context
I'm trying to show an image across the whole content area including the sidebar.

I can see the same behaviour in the official manual on readthedocs.

I tested this with both Firefox and Falkon, a Chromium based browser. The <div> gets three classes: full-width, docutils and container. It works if only one of docutils and container is used/active/applied, but not when both of them are.

expectation
I expect the image to use the full width of the content area, just as with the code cell or the full-width equation.

bug
The image is scaled to the content area without taking the sidebar into account.

Reproduce the bug

This is the snippet I'm using in my index.rst.

.. container:: full-width

  .. image:: screenshot.png

List your environment

I'm using sphinx-book-theme 1.1.4 with sphinx 8.1.3.

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions