mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	| @@ -10,6 +10,11 @@ | ||||
|     color: #ffcc00; | ||||
| } | ||||
|  | ||||
| /* Force select2 elements in modal forms to be full width */ | ||||
| .select-full-width { | ||||
|     width: 100%; | ||||
| } | ||||
|  | ||||
| /* Part image icons with full-display on mouse hover */ | ||||
|  | ||||
| .hover-img-thumb { | ||||
| @@ -118,6 +123,10 @@ | ||||
|   z-index: 99999999; | ||||
| } | ||||
|  | ||||
| .modal-dialog { | ||||
|     width: 45%; | ||||
| } | ||||
|  | ||||
| .modal-content h3 { | ||||
|     margin-top: 3px; | ||||
|     margin-bottom: 3px; | ||||
|   | ||||
| @@ -13,8 +13,11 @@ function attachSelect(modal) { | ||||
|      $(modal + ' .select').select2({ | ||||
|         dropdownParent: $(modal), | ||||
|         // dropdownAutoWidth parameter is required to work properly with modal forms | ||||
|         dropdownAutoWidth: true, | ||||
|         dropdownAutoWidth: false, | ||||
|     }); | ||||
|  | ||||
|     $(modal + ' .select2-container').addClass('select-full-width'); | ||||
|     $(modal + ' .select2-container').css('width', '100%'); | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user