fix #2014 (User menu dropdown in caliblur is tiny and presents scrollbars)
Fix display of nonexistent series_index Fix caliblur add-to-shelf
This commit is contained in:
		
							parent
							
								
									aae81c3d24
								
							
						
					
					
						commit
						15ec6bec95
					
				|  | @ -113,6 +113,7 @@ def yesno(value, yes, no): | ||||||
| 
 | 
 | ||||||
| @jinjia.app_template_filter('formatfloat') | @jinjia.app_template_filter('formatfloat') | ||||||
| def formatfloat(value, decimals=1): | def formatfloat(value, decimals=1): | ||||||
|  |     value = 0 if not value else value | ||||||
|     return ('{0:.' + str(decimals) + 'g}').format(value) |     return ('{0:.' + str(decimals) + 'g}').format(value) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -3291,7 +3291,6 @@ div.btn-group[role=group][aria-label="Download, send to Kindle, reading"] .dropd | ||||||
|     transform-origin: center top; |     transform-origin: center top; | ||||||
|     border: 0; |     border: 0; | ||||||
|     left: 0 !important; |     left: 0 !important; | ||||||
|     max-height: 80%; |  | ||||||
|     overflow-y: auto; |     overflow-y: auto; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -413,7 +413,11 @@ if($("body.advsearch").length > 0) { | ||||||
|   }); |   }); | ||||||
|   $('#add-to-shelf').height("40px"); |   $('#add-to-shelf').height("40px"); | ||||||
|   function search_dropdownToggle() { |   function search_dropdownToggle() { | ||||||
|       topPos = $("#add-to-shelf").offset().top-20; |       if( $("#add-to-shelf").length) { | ||||||
|  |           topPos = $("#add-to-shelf").offset().top - 20; | ||||||
|  |       } else { | ||||||
|  |           topPos = 0 | ||||||
|  |       } | ||||||
|       if ($('div[aria-label="Add to shelves"]').length > 0) { |       if ($('div[aria-label="Add to shelves"]').length > 0) { | ||||||
| 
 | 
 | ||||||
|           position = $('div[aria-label="Add to shelves"]').offset().left |           position = $('div[aria-label="Add to shelves"]').offset().left | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user