Skip to content

Commit cddd92b

Browse files
authored
Merge pull request RooCodeInc#732 from RooVetGit/fix_mode_wrapping
Make list of modes multi-line on the prompts page
2 parents f493619 + a01d923 commit cddd92b

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Visual cleanup to the list of modes on the prompts tab

webview-ui/src/components/prompts/PromptsView.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -472,13 +472,11 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
472472
<div
473473
style={{
474474
display: "flex",
475-
gap: "16px",
475+
gap: "8px",
476476
alignItems: "center",
477477
marginBottom: "12px",
478-
overflowX: "auto",
479-
flexWrap: "nowrap",
480-
paddingBottom: "4px",
481-
paddingRight: "20px",
478+
flexWrap: "wrap",
479+
padding: "4px 0",
482480
}}>
483481
{modes.map((modeConfig) => {
484482
const isActive = mode === modeConfig.slug
@@ -859,13 +857,11 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
859857
<div
860858
style={{
861859
display: "flex",
862-
gap: "16px",
860+
gap: "8px",
863861
alignItems: "center",
864862
marginBottom: "12px",
865-
overflowX: "auto",
866-
flexWrap: "nowrap",
867-
paddingBottom: "4px",
868-
paddingRight: "20px",
863+
flexWrap: "wrap",
864+
padding: "4px 0",
869865
}}>
870866
{Object.keys(supportPrompt.default).map((type) => (
871867
<button

0 commit comments

Comments
 (0)