diff --git a/src/scss/page/main/store.scss b/src/scss/page/main/store.scss index eee382a0fe..237583fc86 100644 --- a/src/scss/page/main/store.scss +++ b/src/scss/page/main/store.scss @@ -58,8 +58,9 @@ .info { height: 100%; position: relative; } .info { + .txt { width: 100%; } .name { font-weight: 500; @include text-overflow-nw; } - .descr { @include text-small; color: $colorDarkGrey; @include text-overflow-nw; margin: 2px 0px 3px 0px; } + .descr { width: 100%; @include text-small; color: $colorDarkGrey; @include text-overflow-nw; margin: 2px 0px 3px 0px; } .author { @include text-small; color: #6c6a5f; line-height: 18px; } .line { width: 100%; height: 1px; background: #eae9e0; position: absolute; left: 0px; } } @@ -96,10 +97,12 @@ } .wrapper.relation { - .mid { padding-bottom: 114px; } .mid { .label { margin: 0px; } .button { display: none; } } + .item { + .descr { display: none; } + } } } \ No newline at end of file diff --git a/src/ts/component/menu/dataview/relation/list.tsx b/src/ts/component/menu/dataview/relation/list.tsx index 6e9d0408cb..ae69b718ac 100644 --- a/src/ts/component/menu/dataview/relation/list.tsx +++ b/src/ts/component/menu/dataview/relation/list.tsx @@ -73,7 +73,7 @@ class MenuRelationList extends React.Component { {relations.map((item: any, i: number) => { return ; })} - {!readOnly ? : ''} + {!readOnly ? : ''} ); }); diff --git a/src/ts/component/page/main/store.tsx b/src/ts/component/page/main/store.tsx index b228873c29..12693be037 100644 --- a/src/ts/component/page/main/store.tsx +++ b/src/ts/component/page/main/store.tsx @@ -167,13 +167,15 @@ class PageMainStore extends React.Component { case Tab.Relation: Item = (item: any) => { + const { name, description } = item; const author = detailStore.get(rootId, item.creator, []); return (
{ this.onClick(e, item); }}> - +
-
{item.name}
+
{name}
+
{description}
diff --git a/src/ts/component/util/objectPreviewBlock.tsx b/src/ts/component/util/objectPreviewBlock.tsx index 1ebcff21d2..eef8a2ea98 100644 --- a/src/ts/component/util/objectPreviewBlock.tsx +++ b/src/ts/component/util/objectPreviewBlock.tsx @@ -262,13 +262,10 @@ class ObjectPreviewBlock extends React.Component {
{isTask ? ( - ) : - ( + ) : ( )} -
- {name} -
+
{name}
{description}
{author.name}