mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	style(next): promoted attributes widget: tweak checkboxes
This commit is contained in:
		
							parent
							
								
									e93d47f664
								
							
						
					
					
						commit
						ee2d4c6830
					
				@ -226,6 +226,9 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
 | 
				
			|||||||
            } else if (definition.labelType === "boolean") {
 | 
					            } else if (definition.labelType === "boolean") {
 | 
				
			||||||
                $input.prop("type", "checkbox");
 | 
					                $input.prop("type", "checkbox");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                $input.wrap($(`<label class="tn-checkbox"></label>`));
 | 
				
			||||||
 | 
					                $wrapper.find(".input-group").removeClass("input-group");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (valueAttr.value === "true") {
 | 
					                if (valueAttr.value === "true") {
 | 
				
			||||||
                    $input.prop("checked", "checked");
 | 
					                    $input.prop("checked", "checked");
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
				
			|||||||
@ -1878,6 +1878,13 @@ div.promoted-attribute-cell input {
 | 
				
			|||||||
    font-weight: 500;
 | 
					    font-weight: 500;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					div.promoted-attribute-cell .tn-checkbox {
 | 
				
			||||||
 | 
					    --box-label-gap: 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    height: 1cap;
 | 
				
			||||||
 | 
					    margin: 0 1em;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
div.promoted-attribute-cell .multiplicity {
 | 
					div.promoted-attribute-cell .multiplicity {
 | 
				
			||||||
    --icon-button-size: 28px;
 | 
					    --icon-button-size: 28px;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user