shadcn-ui for Phoenix shadix.workinghypothes.is
elixir phoenix shadcn

fix(components): dialog scroll-lock compensates for scrollbar width master

Locking body scroll (overflow: hidden) removes the viewport scrollbar, which shifts the page content — and any fixed/centered dialog — horizontally by the scrollbar width. Compensate by reserving the scrollbar width as padding-right on <body> while locked, and reset it on close/destroy. Mirrors Radix/shadcn. Regenerates the dialog registry manifest.


+22 -3
2 changed files