@@ -174,6 +174,10 @@ async function internalStart(
174
174
const sourcePickerStyle = getSourcePickerStyleConfig ( conf . style ) ;
175
175
const actionPickerStyle = getActionPickerStylConfig ( conf . style ) ;
176
176
177
+ const sourcePickerZindex = sourcePickerStyle . layout ?. zindex ?? 50 ;
178
+ const actionPickerZindex = actionPickerStyle . layout ?. zindex ??
179
+ ( sourcePickerZindex + 1 ) ;
180
+
177
181
const sourceStream = await source . stream ( { cmdline } ) ;
178
182
await using sourcePicker = await Picker . fromStream (
179
183
sourceStream ,
@@ -186,7 +190,10 @@ async function internalStart(
186
190
title : " " + `${ source . name } ${ cmdline } ` . trim ( ) + " " ,
187
191
selectable : true ,
188
192
restoreContext : options . restoreContext ,
189
- layout : sourcePickerStyle . layout ,
193
+ layout : {
194
+ ...sourcePickerStyle . layout ,
195
+ zindex : sourcePickerZindex ,
196
+ } ,
190
197
query : sourcePickerStyle . query ,
191
198
} ,
192
199
) ;
@@ -207,7 +214,10 @@ async function internalStart(
207
214
actionPreviewers ,
208
215
{
209
216
...( pickerOptions . options ?? { } ) ,
210
- layout : actionPickerStyle . layout ,
217
+ layout : {
218
+ ...actionPickerStyle . layout ,
219
+ zindex : actionPickerZindex ,
220
+ } ,
211
221
query : actionPickerStyle . query ,
212
222
} ,
213
223
) ;
0 commit comments