Поправлен перенос тегов в отдельную строку

This commit is contained in:
Pavel Gnedov 2023-07-03 13:17:44 +07:00
parent ac14a4ebdc
commit 00f7e6eea3

View file

@ -42,6 +42,7 @@ export const IssuesListCard = observer((props: Props): JSX.Element => {
// </div>
// </div>
// );
const tagsNewLine = (props.store.styledTags && props.store.styledTags.length > 0) ? <br/> : null;
return (
<div className={Css.todoBlock} onClick={(e) => { e.stopPropagation(); detailsStore.show(); }}>
<IssueDetailsDialogNs.IssueDetailsDialog store={detailsStore} />
@ -59,7 +60,7 @@ export const IssuesListCard = observer((props: Props): JSX.Element => {
</span>
<span> </span>
<span className={Css.timeBox}>{SpentHoursToFixed(props.store.total_spent_hours)} / {SpentHoursToFixed(props.store.total_estimated_hours)}</span>
{(props.store.styledTags && props.store.styledTags.hasOwnProperties()) ? <br/> : null}
{tagsNewLine}
<TagsNs.Tags params={{ tags: props.store.styledTags }} />
<div className={Css.positionInfo}>
<span className={Css.timeBox}>{props.store.status.name}</span>