File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed
src/styles/components/chat Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -1662,4 +1662,32 @@ After that some blockquote!
1662
1662
and normal text again.
1663
1663
` ,
1664
1664
} ,
1665
+
1666
+ {
1667
+ type : ChatItemType . ANSWER ,
1668
+ fullWidth : true ,
1669
+ padding : false ,
1670
+ header : {
1671
+ buttons : [ {
1672
+ icon : 'undo' ,
1673
+ text : 'Undo' ,
1674
+ status : 'clear' ,
1675
+ id : 'undo-change' , // Or whatever ID you have
1676
+ } ] ,
1677
+ fileList : {
1678
+ hideFileCount : true ,
1679
+ fileTreeTitle : '' ,
1680
+ filePaths : [ 'maze_game.py' ] ,
1681
+ details : {
1682
+ 'maze_game.py' : {
1683
+ icon : null ,
1684
+ changes : {
1685
+ added : 131 ,
1686
+ deleted : 0 ,
1687
+ } ,
1688
+ } ,
1689
+ } ,
1690
+ } ,
1691
+ } ,
1692
+ }
1665
1693
] ;
Original file line number Diff line number Diff line change 1
1
### Refactoring process on ` index.ts `
2
2
3
3
Changes will be applied _ between line 42 and 70_ .
4
- & nbsp ;
4
+
5
5
``` diff-typescript
6
6
const mynahUI = new MynahUI({
7
7
tabs: {
Original file line number Diff line number Diff line change 209
209
> .mynah-chat-item-card-icon {
210
210
position : absolute ;
211
211
left : var (--mynah-sizing-3 );
212
- top : var (--mynah-sizing-5 );
212
+ top : calc ( var (--mynah-sizing-1 ) + var ( --mynah-line-height ) );
213
213
214
214
& [class *= ' icon-status-' ]:not (.icon-status-none ) {
215
215
padding : var (--mynah-sizing-2 );
394
394
align-items : center ;
395
395
font-size : var (--mynah-font-size-large );
396
396
padding-right : var (--mynah-sizing-1 );
397
+ min-height : var (--mynah-sizing-7 );
397
398
@each $status in $mynah-statuses {
398
399
& .status-#{$status } {
399
400
color : var (--mynah-color-status - #{$status } );
You can’t perform that action at this time.
0 commit comments