Skip to content

Sidebar width is not following sidebar #1633

@ShGKme

Description

@ShGKme

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Open sidebar on Desktop
  2. Open viewer
  3. Change window's width

Expected behavior

  1. Viewer right border is on the sidebar border
    image

  2. When the sidebar's width is changing, viewer width is following the sidebar's border

Actual behavior

  1. Viewer overflows the sidebar for 8px
    image

  2. Sidebar watches the sidebar state change (open/close) but gets the sidebars width only once. When the window is resized
    image

Additional info

  1. The problem is that viewer doesn't take into account that the sidebar is not on the right border. There is a margin. It is easy to with using var(--body-container-margin). Alternative solution could be to use getBoundingClientRect.

  2. It seems, it is fixable using the window's resize event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofbugSomething isn't workingregressionRegression of a previous working feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions