mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Add loading spinners and mermaid error handling (#12358)
- Add loading spinners on editor and mermaid renderers - Add error handling and inline error box for mermaid - Fix Mermaid rendering by using the .init api
This commit is contained in:
		
							
								
								
									
										12
									
								
								web_src/less/markdown/mermaid.less
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								web_src/less/markdown/mermaid.less
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| .mermaid-chart { | ||||
|     display: flex; | ||||
|     justify-content: center; | ||||
|     align-items: center; | ||||
|     padding: 1rem; | ||||
|     margin: 1rem 0; | ||||
| } | ||||
|  | ||||
| /* mermaid's errorRenderer seems to unavoidably spew stuff into <body>, hide it */ | ||||
| body > div[id*="mermaid-"] { | ||||
|     display: none !important; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user