mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 16:16:04 +08: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() {
|
||||
this.$widget = $(TPL);
|
||||
this.contentSized();
|
||||
this.overflowing();
|
||||
|
||||
this.$titleContainer = this.$widget.find('.section-title-container');
|
||||
this.$bodyContainer = this.$widget.find('.section-body-container');
|
||||
|
|
|
@ -5,6 +5,10 @@ import attributeRenderer from "../services/attribute_renderer.js";
|
|||
const TPL = `
|
||||
<div class="inherited-attributes-widget">
|
||||
<style>
|
||||
.inherited-attributes-widget {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.inherited-attributes-container {
|
||||
color: var(--muted-text-color);
|
||||
max-height: 200px;
|
||||
|
@ -39,7 +43,7 @@ export default class InheritedAttributesWidget extends TabAwareWidget {
|
|||
|
||||
doRender() {
|
||||
this.$widget = $(TPL);
|
||||
this.contentSized();
|
||||
this.overflowing();
|
||||
|
||||
this.$container = this.$widget.find('.inherited-attributes-container');
|
||||
this.$widget.append(this.attributeDetailWidget.render());
|
||||
|
@ -64,7 +68,8 @@ export default class InheritedAttributesWidget extends TabAwareWidget {
|
|||
noteId: attribute.noteId,
|
||||
type: attribute.type,
|
||||
name: attribute.name,
|
||||
value: attribute.value
|
||||
value: attribute.value,
|
||||
isInheritable: attribute.isInheritable
|
||||
},
|
||||
isOwned: false,
|
||||
x: e.pageX,
|
||||
|
|
Loading…
Reference in a new issue