mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix display of attr detail
This commit is contained in:
		
							parent
							
								
									b0217ee04c
								
							
						
					
					
						commit
						6df6fe03fa
					
				@ -87,7 +87,7 @@ export default class CollapsibleSectionContainer extends TabAwareWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    doRender() {
 | 
					    doRender() {
 | 
				
			||||||
        this.$widget = $(TPL);
 | 
					        this.$widget = $(TPL);
 | 
				
			||||||
        this.contentSized();
 | 
					        this.overflowing();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.$titleContainer = this.$widget.find('.section-title-container');
 | 
					        this.$titleContainer = this.$widget.find('.section-title-container');
 | 
				
			||||||
        this.$bodyContainer = this.$widget.find('.section-body-container');
 | 
					        this.$bodyContainer = this.$widget.find('.section-body-container');
 | 
				
			||||||
 | 
				
			|||||||
@ -5,6 +5,10 @@ import attributeRenderer from "../services/attribute_renderer.js";
 | 
				
			|||||||
const TPL = `
 | 
					const TPL = `
 | 
				
			||||||
<div class="inherited-attributes-widget">
 | 
					<div class="inherited-attributes-widget">
 | 
				
			||||||
    <style>
 | 
					    <style>
 | 
				
			||||||
 | 
					    .inherited-attributes-widget {
 | 
				
			||||||
 | 
					        position: relative;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    .inherited-attributes-container {
 | 
					    .inherited-attributes-container {
 | 
				
			||||||
        color: var(--muted-text-color);
 | 
					        color: var(--muted-text-color);
 | 
				
			||||||
        max-height: 200px;
 | 
					        max-height: 200px;
 | 
				
			||||||
@ -39,7 +43,7 @@ export default class InheritedAttributesWidget extends TabAwareWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    doRender() {
 | 
					    doRender() {
 | 
				
			||||||
        this.$widget = $(TPL);
 | 
					        this.$widget = $(TPL);
 | 
				
			||||||
        this.contentSized();
 | 
					        this.overflowing();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.$container = this.$widget.find('.inherited-attributes-container');
 | 
					        this.$container = this.$widget.find('.inherited-attributes-container');
 | 
				
			||||||
        this.$widget.append(this.attributeDetailWidget.render());
 | 
					        this.$widget.append(this.attributeDetailWidget.render());
 | 
				
			||||||
@ -64,7 +68,8 @@ export default class InheritedAttributesWidget extends TabAwareWidget {
 | 
				
			|||||||
                        noteId: attribute.noteId,
 | 
					                        noteId: attribute.noteId,
 | 
				
			||||||
                        type: attribute.type,
 | 
					                        type: attribute.type,
 | 
				
			||||||
                        name: attribute.name,
 | 
					                        name: attribute.name,
 | 
				
			||||||
                        value: attribute.value
 | 
					                        value: attribute.value,
 | 
				
			||||||
 | 
					                        isInheritable: attribute.isInheritable
 | 
				
			||||||
                    },
 | 
					                    },
 | 
				
			||||||
                    isOwned: false,
 | 
					                    isOwned: false,
 | 
				
			||||||
                    x: e.pageX,
 | 
					                    x: e.pageX,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user