File tree Expand file tree Collapse file tree 3 files changed +178
-76
lines changed Expand file tree Collapse file tree 3 files changed +178
-76
lines changed Original file line number Diff line number Diff line change 9
9
FolderTree ,
10
10
HardDriveDownload ,
11
11
Pin ,
12
+ PinOff ,
12
13
RefreshCw ,
13
14
Trash2 ,
14
15
} from "lucide-react" ;
@@ -265,14 +266,18 @@ export default function StartFilePanel({ open = false }: { open: boolean }) {
265
266
</ td >
266
267
) }
267
268
< td className = "flex justify-center" >
268
- < button className = "mx-0.5 px-2 py-1" onClick = { onLoadCurrentStartFile ( file . path ) } >
269
- < HardDriveDownload />
269
+ < button className = "mx-0.5 px-2 py-1 hover:cursor-pointer " onClick = { onLoadCurrentStartFile ( file . path ) } >
270
+ < HardDriveDownload className = "hover:cursor-pointer" />
270
271
</ button >
271
- < button className = "mx-0.5 px-2 py-1" onClick = { onSetCurrentStartFile ( file . path ) } >
272
- < Pin />
272
+ < button className = "mx-0.5 px-2 py-1 hover:cursor-pointer" onClick = { onSetCurrentStartFile ( file . path ) } >
273
+ { currentStartFile === file . path ? (
274
+ < Pin className = "hover:cursor-pointer" />
275
+ ) : (
276
+ < PinOff className = "hover:cursor-pointer" />
277
+ ) }
273
278
</ button >
274
- < button className = "mx-0.5 px-2 py-1" onClick = { onRemoveFile ( file . path ) } >
275
- < Delete />
279
+ < button className = "mx-0.5 px-2 py-1 hover:cursor-pointer " onClick = { onRemoveFile ( file . path ) } >
280
+ < Delete className = "hover:cursor-pointer" />
276
281
</ button >
277
282
</ td >
278
283
</ tr >
@@ -281,10 +286,19 @@ export default function StartFilePanel({ open = false }: { open: boolean }) {
281
286
</ table >
282
287
< div >
283
288
< div className = "text-panel-details-text mt-3 text-sm" >
284
- < p > { t ( "tips.0" ) } </ p >
285
- < p > { t ( "tips.1" ) } </ p >
286
- < p > { t ( "tips.2" ) } </ p >
287
- < p > { t ( "tips.3" ) } </ p >
289
+ < p className = "flex h-8 items-center" > { t ( "tips.0" ) } </ p >
290
+ < p className = "flex h-8 items-center" >
291
+ < HardDriveDownload />
292
+ { t ( "tips.1" ) }
293
+ </ p >
294
+ < p className = "flex h-8 items-center" >
295
+ < Pin />
296
+ { t ( "tips.2" ) }
297
+ </ p >
298
+ < p className = "flex h-8 items-center" >
299
+ < Delete />
300
+ { t ( "tips.3" ) }
301
+ </ p >
288
302
</ div >
289
303
< div >
290
304
< div className = "flex flex-nowrap items-center justify-center" >
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export function ColorPanel() {
79
79
} ) ;
80
80
} , [ ] ) ;
81
81
return (
82
- < >
82
+ < div className = "bg-panel-bg rounded-lg" >
83
83
< div className = "flex flex-wrap items-center justify-center" >
84
84
< div
85
85
className = "m-1 h-5 w-5 cursor-pointer rounded-full bg-red-500 hover:scale-125"
@@ -126,7 +126,9 @@ export function ColorPanel() {
126
126
>
127
127
< span > x</ span >
128
128
</ div >
129
- { /* 自定义 */ }
129
+ </ div >
130
+ < div className = "flex flex-wrap items-center justify-center" >
131
+ { /* 临时自定义 */ }
130
132
< input
131
133
type = "color"
132
134
id = "colorPicker"
@@ -165,7 +167,7 @@ export function ColorPanel() {
165
167
) ;
166
168
} ) }
167
169
</ div >
168
- </ >
170
+ </ div >
169
171
) ;
170
172
}
171
173
@@ -178,12 +180,12 @@ function GenerateNodePanel() {
178
180
const [ indention , setIndention ] = useState ( 4 ) ;
179
181
180
182
return (
181
- < div className = "flex flex-col gap-4" >
183
+ < div className = "bg-panel-bg flex flex-col gap-4 rounded-lg p-2 " >
182
184
< Input value = { inputValue } onChange = { setInputValue } multiline />
183
185
< div >
184
- < span > 缩进 </ span >
186
+ < span className = "text-panel-text" > 缩进数量 </ span >
185
187
< Input value = { indention . toString ( ) } onChange = { setIndention } number />
186
- < p className = "text-xs text-neutral-400 " > 会按照您的缩进等级来生成对应的节点结构</ p >
188
+ < p className = "text-panel-details-text text-xs " > 会按照您的缩进等级来生成对应的节点结构</ p >
187
189
</ div >
188
190
< Button
189
191
onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments