diff --git a/apps/sensenet/src/components/view-controls/common/view-title.tsx b/apps/sensenet/src/components/view-controls/common/view-title.tsx index e56640835..84cf4f87b 100644 --- a/apps/sensenet/src/components/view-controls/common/view-title.tsx +++ b/apps/sensenet/src/components/view-controls/common/view-title.tsx @@ -32,6 +32,18 @@ const useStyles = makeStyles(() => { actionBar: { display: 'flex', }, + typeinfo: { + fontSize: '12px', + color: 'grey', + marginLeft: '5px', + }, + + viewTitle: { + '& span': { + display: 'inline-block', + verticalAlign: 'middle', + }, + }, }) }) @@ -63,8 +75,9 @@ export const ViewTitle: React.FunctionComponent = (props) => { return (
-
+
{props.title} {props.titleBold} + ({props.content!.Type})
{props.actionName === 'browse' && ( @@ -130,16 +143,15 @@ export const ViewTitle: React.FunctionComponent = (props) => { title={`Open ${contentDisplayName} CTD`} onClick={async () => { const content = await getContentTypeId(props.content!.Type) - history.push( - getPrimaryActionUrl({ - content, - repository, - location: history.location, - uiSettings, - snRoute, - removePath: true, - }), - ) + const url = getPrimaryActionUrl({ + content, + repository, + location: history.location, + uiSettings, + snRoute, + removePath: true, + }) + window.open(url, '_blank') }} className={globalClasses.centered}>