This repository was archived by the owner on Nov 21, 2023. It is now read-only.
File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ export const EditorPane = () => {
37
37
} ;
38
38
39
39
return (
40
- < div className = "absolute z-50 flex flex-col w-3/12 max-w-lg bg-white border shadow-xl rounded-xl inset-y-3 right-3 border-slate-200" >
40
+ < div className = "absolute z-50 flex flex-col w-3/12 max-w-lg min-w-[320px] bg-white border shadow-xl rounded-xl inset-y-3 right-3 border-slate-200" >
41
41
< div className = "px-4 py-3 border-b border-slate-300" >
42
- < span className = "text-xl font-medium" > Edit data </ span >
42
+ < span className = "text-xl font-medium" > Link to theme </ span >
43
43
</ div >
44
44
< div className = "flex flex-col flex-1 gap-2 px-4 py-4 overflow-y-auto" >
45
45
< p className = "font-semibold text-md" > Node changes</ p >
Original file line number Diff line number Diff line change @@ -39,18 +39,25 @@ export const NodeChange = ({
39
39
return < > </ > ;
40
40
}
41
41
const colors = typeColorMap ( nodeChange . type ) ;
42
- const propsToShow : { name : string ; type : SupportedTypes } [ ] = [
42
+ const propsToShow : {
43
+ name : string ;
44
+ type : SupportedTypes ;
45
+ isLinkable : boolean ;
46
+ } [ ] = [
43
47
{
44
48
name : 'name' ,
45
49
type : 'string' ,
50
+ isLinkable : false ,
46
51
} ,
47
52
{
48
53
name : 'cornerRadius' ,
49
54
type : 'number' ,
55
+ isLinkable : true ,
50
56
} ,
51
57
{
52
58
name : 'fontSize' ,
53
59
type : 'number' ,
60
+ isLinkable : true ,
54
61
} ,
55
62
] ;
56
63
return (
@@ -78,6 +85,7 @@ export const NodeChange = ({
78
85
//@ts -expect-error
79
86
value = { nodeChange [ p . name ] }
80
87
type = { p . type }
88
+ isLinkable = { p . isLinkable }
81
89
linkPath = { [ ...parentLinkPath , p . name ] }
82
90
/>
83
91
</ Prop . Root >
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const Value = ({
40
40
} : React . HTMLAttributes < HTMLDivElement > ) => (
41
41
< div
42
42
className = { twMerge (
43
- 'flex gap-1 items-center px-2 py-0.5 rounded-md text-slate-900 bg-slate-100' ,
43
+ 'flex gap-1 h-full items-center px-2 py-0.5 rounded-md text-slate-900 bg-slate-100' ,
44
44
className ,
45
45
) }
46
46
{ ...props }
@@ -86,7 +86,6 @@ const String = ({
86
86
) }
87
87
{ isLinkable && (
88
88
< Value >
89
- ...
90
89
< ChevronDown
91
90
size = { 16 }
92
91
onClick = { ( ) => { } }
@@ -116,7 +115,6 @@ const Number = ({
116
115
) }
117
116
{ isLinkable && (
118
117
< Value >
119
- ...
120
118
< ChevronDown
121
119
size = { 16 }
122
120
onClick = { ( ) => { } }
You can’t perform that action at this time.
0 commit comments