Repository: vscode
Issue: recent project menu on small window is too wide
Labels: bug,menus

Type: <b>Bug</b>

When i open vs code the default window size - for whatever reason - is 1024x768.

When i open my recent projects menu, by clicking on file, then clicking on recent projects, i automatically open the 3rd or 4th project in the list.

why?

because i have long paths in my recents that make the menu intrude back over the main file menu bounds.  thus my click and subsequent mouse up activate whichever project is immediately below my cursor in the newly visible recent projects.

Please do some sort of truncating to not allow these menus to overlap as such and cascade as expected.

observe below that the very long line in my recents causes the sub menu to open under my cursor and thus will invoke on mouse up.

As such i have no real effective way to select a project from the recents until i resize my window big enough, or press and hold and drag around the menu which is a very awkward way to use a menu.

![image](https://github.com/microsoft/vscode/assets/41075/cd968b92-5305-4d2f-8bb8-02b8910ae817)

VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:48:05.904Z)
OS version: Windows_NT x64 10.0.22621
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i9-11980HK @ 2.60GHz (16 x 3302)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|63.71GB (41.94GB free)|
|Process Argv|--crash-reporter-id d8d9b7bf-ea05-4e4f-bddd-e38795583b25|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (23)</summary>

Extension|Author (truncated)|Version
---|---|---
copy-path-unixstyle|bai|2.0.0
npm-intellisense|chr|1.4.5
path-intellisense|chr|2.8.5
vscode-css-modules|cli|0.5.1
postcss|css|1.0.9
vscode-eslint|dba|2.4.2
gitlens|eam|14.4.0
vscode-html-css|ecm|1.13.1
vscode-test-explorer|hbe|2.21.1
search-node-modules|jas|1.3.0
svg|joc|1.5.3
vscode-jest-test-adapter|kav|0.8.1
pnpm-vscode-helper|lin|0.3.0
remote-wsl|ms-|0.81.8
test-adapter-converter|ms-|0.1.8
vscode-nvm|noj|0.0.2
indent-rainbow|ode|8.3.1
vscode-subword-navigation|ow|1.2.0
vscode-xml|red|0.26.1
trailing-spaces|sha|0.4.1
vscode-stylelint|sty|1.2.4
vscodeintellicode|Vis|1.2.30
html-css-class-completion|Zig|1.20.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30856253
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyonecf:30548226
2e4cg342:30602488
f6dab269:30613381
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofa:30866041
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
copilotsettingc:30859502
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015:30845448
pythontestfixt:30866405
pyreplss1:30865275
pythontbext0:30864172

```

</details>

<!-- generated by issue reporter -->