style:accordion of 解析任意code项目 is closed by default
This commit is contained in:
		
							parent
							
								
									0ff838443e
								
							
						
					
					
						commit
						de0ed4a6f5
					
				
							
								
								
									
										2
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
									
									
									
									
								
							@ -86,7 +86,7 @@ def main():
 | 
				
			|||||||
                            crazy_fns[k]["Button"] = gr.Button(k, variant=variant)
 | 
					                            crazy_fns[k]["Button"] = gr.Button(k, variant=variant)
 | 
				
			||||||
                            crazy_fns[k]["Button"].style(size="sm")
 | 
					                            crazy_fns[k]["Button"].style(size="sm")
 | 
				
			||||||
                    with gr.Row():
 | 
					                    with gr.Row():
 | 
				
			||||||
                        with gr.Accordion("解析任意code项目", open=True):
 | 
					                        with gr.Accordion("解析任意code项目", open=False):
 | 
				
			||||||
                            gr.Markdown("输入时用逗号隔开, `*`代表通配符, 加了`^`代表不匹配<br>例如: `*.c, ^*.cpp, config.toml, ^README.md`")
 | 
					                            gr.Markdown("输入时用逗号隔开, `*`代表通配符, 加了`^`代表不匹配<br>例如: `*.c, ^*.cpp, config.toml, ^README.md`")
 | 
				
			||||||
                            with gr.Row():
 | 
					                            with gr.Row():
 | 
				
			||||||
                                txt_pattern = gr.Textbox(show_label=False, placeholder="输入框为空则代表匹配所有文件").style(container=False)
 | 
					                                txt_pattern = gr.Textbox(show_label=False, placeholder="输入框为空则代表匹配所有文件").style(container=False)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user