File tree Expand file tree Collapse file tree
packages/ui/src/components/editor/panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.container {
2- --padding : var (--padding-5px ) var (--padding-7px );
2+ --padding : var (--padding-5px ) 15 px var ( --padding-5px ) var (--padding-7px );
33 position : relative ;
44
55 & __inner {
Original file line number Diff line number Diff line change 33 flex-direction : column ;
44}
55
6- .heading {
7- padding : 0 var (--padding-12px );
8- margin-bottom : var (--padding-2px );
9- display : flex ;
10- align-items : center ;
11- gap : var (--padding-8px );
12-
13- & __title {
14- color : var (--vscode-descriptionForeground );
15- white-space : nowrap ;
16- }
17- }
18-
196.missing-config {
207 padding : var (--padding-2px ) var (--padding-12px ) 0 var (--padding-12px );
218 font-weight : 500 ;
10592 transform : translateX (0 );
10693 }
10794}
95+
96+ .footer {
97+ display : flex ;
98+ padding : var (--padding-8px ) var (--padding-12px );
99+
100+ > button {
101+ width : 100% ;
102+ flex : 1 ;
103+ }
104+ }
Original file line number Diff line number Diff line change 11import styles from './Configurations.module.scss'
22import { DEFAULT_TEMPERATURE } from '@shared/constants/api-tools'
33import cn from 'classnames'
4- import { IconButton } from '../IconButton'
54import { ReactSortable } from 'react-sortablejs'
5+ import { Button } from '../Button/Button'
66
77export namespace Configurations {
88 export type Configuration = {
@@ -27,15 +27,6 @@ export namespace Configurations {
2727export const Configurations : React . FC < Configurations . Props > = ( props ) => {
2828 return (
2929 < div className = { styles . container } >
30- < div className = { styles . heading } >
31- < div className = { styles [ 'heading__title' ] } > MY CONFIGURATIONS</ div >
32-
33- < IconButton
34- codicon_icon = "edit"
35- on_click = { props . on_manage_configurations }
36- />
37- </ div >
38-
3930 < div className = { styles . configurations } >
4031 < ReactSortable
4132 list = { props . configurations }
@@ -101,6 +92,11 @@ export const Configurations: React.FC<Configurations.Props> = (props) => {
10192 } ) }
10293 </ ReactSortable >
10394 </ div >
95+ < div className = { styles . footer } >
96+ < Button on_click = { props . on_manage_configurations } >
97+ Edit Configurations
98+ </ Button >
99+ </ div >
104100 </ div >
105101 )
106102}
Original file line number Diff line number Diff line change 33 flex-direction : column ;
44}
55
6- .my-presets {
7- display : flex ;
8- align-items : center ;
9- padding : 0 var (--padding-12px );
10- margin-bottom : var (--padding-2px );
11- gap : var (--padding-8px );
12-
13- & __left {
14- color : var (--vscode-descriptionForeground );
15- }
16- }
17-
186.presets {
197 display : flex ;
208 flex-direction : column ;
128116 }
129117 }
130118}
119+
120+ .footer {
121+ display : flex ;
122+ padding : var (--padding-8px ) var (--padding-12px );
123+
124+ > button {
125+ flex : 1 ;
126+ }
127+ }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import cn from 'classnames'
55import { ReactSortable } from 'react-sortablejs'
66import { Icon } from '../../common/Icon'
77import { CHATBOTS } from '@shared/constants/chatbots'
8+ import { Button } from '../Button/Button'
89import { use_context_menu } from '../../../../hooks/use-context-menu'
910
1011export const chatbot_to_icon : Record < keyof typeof CHATBOTS , Icon . Variant > = {
@@ -102,11 +103,6 @@ export const Presets: React.FC<Presets.Props> = (props) => {
102103
103104 return (
104105 < div className = { styles . container } >
105- < div className = { styles [ 'my-presets' ] } >
106- < div className = { styles [ 'my-presets__left' ] } > MY PRESETS</ div >
107- < IconButton codicon_icon = "add" on_click = { props . on_create_preset } />
108- </ div >
109-
110106 < div className = { styles . presets } >
111107 { props . presets [ 0 ] ?. chatbot !== undefined && (
112108 < div
@@ -369,6 +365,9 @@ export const Presets: React.FC<Presets.Props> = (props) => {
369365 </ div >
370366 </ div >
371367 ) }
368+ < div className = { styles . footer } >
369+ < Button on_click = { props . on_create_preset } > Add New Preset</ Button >
370+ </ div >
372371 </ div >
373372 )
374373}
Original file line number Diff line number Diff line change 2222
2323.instructions {
2424 position : relative ;
25- padding : var (--padding-5px ) var (--padding-7px );
25+ padding : var (--padding-5px ) 15 px var ( --padding-5px ) var (--padding-7px );
2626 border : 1px solid var (--vscode-sideBarSectionHeader-border );
2727 margin : 0 var (--padding-12px );
2828 border-radius : var (--border-radius-10px );
You can’t perform that action at this time.
0 commit comments