Merge pull request #732 from RooVetGit/fix_mode_wrapping

Make list of modes multi-line on the prompts page
This commit is contained in:
Matt Rubens
2025-02-02 02:55:35 -05:00
committed by GitHub
2 changed files with 11 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
---
"roo-cline": patch
---
Visual cleanup to the list of modes on the prompts tab

View File

@@ -472,13 +472,11 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
<div
style={{
display: "flex",
gap: "16px",
gap: "8px",
alignItems: "center",
marginBottom: "12px",
overflowX: "auto",
flexWrap: "nowrap",
paddingBottom: "4px",
paddingRight: "20px",
flexWrap: "wrap",
padding: "4px 0",
}}>
{modes.map((modeConfig) => {
const isActive = mode === modeConfig.slug
@@ -859,13 +857,11 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
<div
style={{
display: "flex",
gap: "16px",
gap: "8px",
alignItems: "center",
marginBottom: "12px",
overflowX: "auto",
flexWrap: "nowrap",
paddingBottom: "4px",
paddingRight: "20px",
flexWrap: "wrap",
padding: "4px 0",
}}>
{Object.keys(supportPrompt.default).map((type) => (
<button