11import { useState , useEffect , useRef } from 'react'
22import { cn } from '@/lib/utils'
3- import { Loader2 , Plus , Trash2 , Edit , StarOff , Download , RotateCcw , FileText , ArrowUpCircle , History } from 'lucide-react'
3+ import { Loader2 , Plus , Trash2 , Edit , StarOff , Download , RotateCcw , FileText , ArrowUpCircle , History , ChevronDown } from 'lucide-react'
44import { Button } from '@/components/ui/button'
55import { Card , CardContent , CardHeader , CardTitle } from '@/components/ui/card'
66import { Label } from '@/components/ui/label'
@@ -477,7 +477,7 @@ export function OpenCodeConfigManager() {
477477 < CardHeader className = "pb-3" >
478478 < div className = "flex items-center justify-between" >
479479 < div className = "flex items-center gap-2 flex-wrap" >
480- < CardTitle className = "text-base" > { config . name } </ CardTitle >
480+ < CardTitle className = "text-sm sm:text- base" > { config . name } </ CardTitle >
481481 { config . isDefault && (
482482 < Badge variant = "default" className = "text-green-500 bg-green-500/10" >
483483 Current
@@ -572,7 +572,7 @@ export function OpenCodeConfigManager() {
572572 < FileText className = "h-4 w-4 text-blue-500" />
573573 < h4 className = "text-sm font-medium truncate" > Global Agent Instructions (AGENTS.md)</ h4 >
574574 </ div >
575- < Edit className = { `h-4 w-4 transition-transform ${ expandedSections . agentsMd ? 'rotate-90' : '' } ` } />
575+ < ChevronDown className = { `h-4 w-4 transition-transform ${ expandedSections . agentsMd ? 'rotate-90' : '' } ` } />
576576 </ button >
577577 < div className = { `${ expandedSections . agentsMd ? 'block' : 'hidden' } border-t border-border` } >
578578 < div className = "p-4" >
@@ -581,15 +581,15 @@ export function OpenCodeConfigManager() {
581581 </ div >
582582 </ div >
583583
584- < h3 className = "text-lg font-semibold mb-4" > Configure Commands, Agents & MCP Servers </ h3 >
584+ < h3 className = "text-base sm:text- lg font-semibold mb-4" > Configure Commands, Agents & MCP Servers </ h3 >
585585 < p className = "text-sm text-muted-foreground mb-6" >
586586 Add custom commands, agents, and MCP servers to your OpenCode configurations. Select a configuration below to edit its settings.
587587 </ p >
588588
589589 { configs . length > 0 && (
590590 < div className = "space-y-6" >
591591 < div className = 'px-1' >
592- < Label className = "text-base font-medium" > Select Configuration to Edit</ Label >
592+ < Label className = "text-sm sm:text- base font-medium" > Select Configuration to Edit</ Label >
593593 < Select
594594 onValueChange = { ( value ) => {
595595 const config = configs . find ( c => c . name === value )
@@ -632,7 +632,7 @@ export function OpenCodeConfigManager() {
632632 { Object . keys ( ( selectedConfig . content ?. command as Record < string , Command > | undefined ) ?? { } ) . length } configured
633633 </ span >
634634 </ div >
635- < Edit className = { `h-4 w-4 transition-transform ${ expandedSections . commands ? 'rotate-90' : '' } ` } />
635+ < ChevronDown className = { `h-4 w-4 transition-transform ${ expandedSections . commands ? 'rotate-90' : '' } ` } />
636636 </ button >
637637 < div className = { `${ expandedSections . commands ? 'block' : 'hidden' } border-t border-border` } >
638638 < div className = "p-1 sm:p-4 max-h-[50vh] overflow-y-auto" >
@@ -669,7 +669,7 @@ export function OpenCodeConfigManager() {
669669 { Object . keys ( ( selectedConfig . content ?. agent as Record < string , Agent > | undefined ) ?? { } ) . length } configured
670670 </ span >
671671 </ div >
672- < Edit className = { `h-4 w-4 transition-transform ${ expandedSections . agents ? 'rotate-90' : '' } ` } />
672+ < ChevronDown className = { `h-4 w-4 transition-transform ${ expandedSections . agents ? 'rotate-90' : '' } ` } />
673673 </ button >
674674 < div className = { `${ expandedSections . agents ? 'block' : 'hidden' } border-t border-border` } >
675675 < div className = "p-4 max-h-[50vh] overflow-y-auto" >
@@ -706,7 +706,7 @@ export function OpenCodeConfigManager() {
706706 { Object . keys ( ( selectedConfig . content ?. mcp as Record < string , unknown > | undefined ) ?? { } ) . length } configured
707707 </ span >
708708 </ div >
709- < Edit className = { `h-4 w-4 transition-transform ${ expandedSections . mcp ? 'rotate-90' : '' } ` } />
709+ < ChevronDown className = { `h-4 w-4 transition-transform ${ expandedSections . mcp ? 'rotate-90' : '' } ` } />
710710 </ button >
711711 < div className = { `${ expandedSections . mcp ? 'block' : 'hidden' } border-t border-border` } >
712712 < div className = "p-4 max-h-[50vh] overflow-y-auto" >
0 commit comments