Repository navigation
Commit 0f5f7e6
committed
Add target selection dropdown menu to prompt field
- on 'target' click, show other targets above
- in target switch dropdown, show current target at all times but in disabled state
- in-between paddings should be smaller
- wrap target switch in a div that has padding-bottom: 4px, instaed of setting margin-bottom: 4px on [Fragment]
- clicking 'more' or 'submit' should close target dropdown
├── apps
│ └── editor
│ └── src
│ └── views
│ └── prompt
│ └── frontend
│ └── Main
│ └── MainView
│ └── MainView.tsx
└── packages
├── shared
│ └── src
│ └── types
│ └── target.ts
└── ui
└── src
└── components
└── editor
└── common
└── prompts
└── PromptField
├── PromptField.module.scss
├── PromptField.stories.tsx
└── PromptField.tsx1 parent afc5716 commit 0f5f7e6
2 files changed
Lines changed: 90 additions & 12 deletions
File tree
- packages/ui/src/components/editor/common/prompts/PromptField
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
228 | 266 | | |
229 | 267 | | |
230 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
330 | 339 | | |
331 | 340 | | |
332 | 341 | | |
| |||
671 | 680 | | |
672 | 681 | | |
673 | 682 | | |
674 | | - | |
| 683 | + | |
675 | 684 | | |
676 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
677 | 716 | | |
678 | 717 | | |
679 | 718 | | |
| |||
682 | 721 | | |
683 | 722 | | |
684 | 723 | | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
| 724 | + | |
| 725 | + | |
692 | 726 | | |
693 | 727 | | |
694 | 728 | | |
| |||
743 | 777 | | |
744 | 778 | | |
745 | 779 | | |
746 | | - | |
| 780 | + | |
747 | 781 | | |
748 | 782 | | |
749 | 783 | | |
750 | 784 | | |
751 | 785 | | |
752 | 786 | | |
753 | 787 | | |
754 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
755 | 792 | | |
756 | 793 | | |
757 | 794 | | |
| |||
764 | 801 | | |
765 | 802 | | |
766 | 803 | | |
| 804 | + | |
767 | 805 | | |
768 | 806 | | |
769 | 807 | | |
| |||
837 | 875 | | |
838 | 876 | | |
839 | 877 | | |
| 878 | + | |
840 | 879 | | |
841 | 880 | | |
842 | 881 | | |
| |||
848 | 887 | | |
849 | 888 | | |
850 | 889 | | |
| 890 | + | |
851 | 891 | | |
852 | 892 | | |
853 | 893 | | |
| |||
0 commit comments