SkepticMystic / breadcrumbs

Add typed-links to your Obsidian notes
https://publish.obsidian.md/breadcrumbs-docs
MIT License
533 stars 36 forks source link

Bug: Trail/Grid/Juggl view overflow on small windows/screens #478

Closed oqipoDev closed 7 months ago

oqipoDev commented 1 year ago

Describe the bug The Trail/Grid/Juggl view at the top of a note overflows to the right when the note space is thinner than 700px (readable length).

I've been developing a theme and this problem caught my attention because it's almost unfixable through CSS, as it's in the element style.

The problem seems to come from /src/Views/Trailview.ts at lines 197-203, and maybe a quick fix would be to remove them (I suspect, at least).

To Reproduce Steps to reproduce the behavior:

  1. Install and use breadcrumbs in a vault
  2. Open any note
  3. Resize window/panels/dividers such that the note is thinner than 700px
  4. See error

Expected behavior The Breadcrumbs view should always be the same width as the note inside, and not fixed.

Screenshots image image image
An example, Default theme, no CSS snippets The problematic class and suspected property Solved by disabling the width property

Desktop (please complete the following information):

SkepticMystic commented 7 months ago

Considered fixed in v4, see the top of the readme for more info