mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-10-31 08:26:46 +01:00 
			
		
		
		
	Fix rendering of content
This commit is contained in:
		
							parent
							
								
									befa0fba95
								
							
						
					
					
						commit
						83ec6665e9
					
				
					 3 changed files with 7 additions and 2 deletions
				
			
		|  | @ -32,7 +32,7 @@ export function renderName() { | ||||||
| export function renderDescription() { | export function renderDescription() { | ||||||
|   const descriptionHTML = md(removeTags(window.currentDictionary.description)); |   const descriptionHTML = md(removeTags(window.currentDictionary.description)); | ||||||
| 
 | 
 | ||||||
|   detailsPanel.innerHTML = descriptionHTML; |   document.getElementById('detailsPanel').innerHTML = '<div class="content">' + descriptionHTML + '</div>'; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export function renderDetails() { | export function renderDetails() { | ||||||
|  |  | ||||||
|  | @ -40,6 +40,10 @@ label { | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | ul { | ||||||
|  |   padding-left: $general-padding; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .tag { | .tag { | ||||||
|   display: inline-block; |   display: inline-block; | ||||||
|   padding: 3px 9px; |   padding: 3px 9px; | ||||||
|  |  | ||||||
|  | @ -149,7 +149,8 @@ | ||||||
|     max-height: 400px; |     max-height: 400px; | ||||||
|     overflow-y: auto; |     overflow-y: auto; | ||||||
| 
 | 
 | ||||||
|     h3 { |     &:not(.content) h3, | ||||||
|  |     *:not(.content) h3 { | ||||||
|       margin-top: 0; |       margin-top: 0; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue