mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(picker): correct z-index for preview="main" layout
When using `preview="main"`, the preview window floats over the main editor window. Set its z-index to 40 (lower than the default 50) to ensure input and help windows remain on top and visible. Fixes #2257 (first issue) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5558e285f5
commit
e796aef0fa
1 changed files with 1 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ function M.new(picker)
|
|||
main = {
|
||||
relative = "win",
|
||||
backdrop = false,
|
||||
zindex = 40, -- Lower than default (50) so input/help windows stay on top
|
||||
},
|
||||
layout = {
|
||||
backdrop = win_opts.backdrop == true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue