Commit eaf2758
Fix agent dropdown rendering in new API key modal (#11187)
## Description
This fixes a rendering bug in the API key creation modal. The modal
content was showing through the dropdown to select which agent the key
is for.
The problem was that the agent dropdown menu renders as an overlay, but
the modal is already an overlay. As a result, other modal content
wouldn't render fully below the dropdown - rendering instead depends on
the order that the UI framework processes elements in. Here, it would
paint the collapsed exipry selector dropdown on top of the opened agent
dropdown menu.
This category of bugs has been a longstanding issue with the UI
framework's z-index handling. As a workaround for now, we can:
1. Reserve space in the modal for the agent dropdown
2. Render the dropdown in a new `Stack` as an overlay that's painted
after the other modal contents
## Testing
- [x] I have manually tested my changes locally with `./script/run`
### Screenshots / Videos
<img width="701" height="724" alt="Screenshot 2026-05-20 at 1 41 35 AM"
src="https://github.com/user-attachments/assets/a910b308-db4b-4e6f-bdb0-7f827561781f"
/>
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
---------
Co-authored-by: Jason Keung <jason@warp.dev>
Co-authored-by: Oz <oz-agent@warp.dev>1 parent 3bd21f8 commit eaf2758
1 file changed
Lines changed: 36 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
169 | | - | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
667 | 670 | | |
668 | 671 | | |
669 | 672 | | |
| 673 | + | |
670 | 674 | | |
671 | 675 | | |
672 | 676 | | |
| |||
738 | 742 | | |
739 | 743 | | |
740 | 744 | | |
| 745 | + | |
741 | 746 | | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
746 | 756 | | |
747 | | - | |
| 757 | + | |
748 | 758 | | |
749 | 759 | | |
750 | 760 | | |
| |||
786 | 796 | | |
787 | 797 | | |
788 | 798 | | |
789 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
790 | 817 | | |
791 | 818 | | |
792 | 819 | | |
| |||
0 commit comments