Skip to content

Commit

Permalink
fix: styling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed Mar 13, 2024
1 parent 0e8f8d7 commit 0ebdaba
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/sensenet/src/components/view-controls/common/view-title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ const useStyles = makeStyles(() => {
typeinfo: {
fontSize: '12px',
color: 'grey',
marginTop: '4px',
marginLeft: '5px',
},

viewTitle: {
'& span': {
display: 'inline-block',
verticalAlign: 'middle',
},
},
})
})

Expand Down Expand Up @@ -69,7 +75,7 @@ export const ViewTitle: React.FunctionComponent<ViewTitleProps> = (props) => {

return (
<div className={clsx(classes.title, globalClasses.centered)}>
<div data-test="viewtitle" className={clsx(globalClasses.centeredVertical)}>
<div data-test="viewtitle" className={classes.viewTitle}>
{props.title} <span className={classes.textBolder}>{props.titleBold}</span>
<span className={classes.typeinfo}>({props.content!.Type})</span>
</div>
Expand Down Expand Up @@ -160,7 +166,6 @@ export const ViewTitle: React.FunctionComponent<ViewTitleProps> = (props) => {
/>
</span>
)}

</div>
</div>
)
Expand Down

0 comments on commit 0ebdaba

Please sign in to comment.