Skip to content

Commit

Permalink
feat: removed reserved space for empty titles in vega_card, simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasOz authored and mturoci committed Oct 3, 2023
1 parent 657d6da commit 553b9d7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ui/src/vega.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const
padding: 24
},
body: {
marginTop: 16,
flexGrow: 1,
display: 'flex',
},
Expand Down Expand Up @@ -148,14 +147,9 @@ export const
return (
<div data-test={name} className={css.card}>
{title && <div className='wave-s12 wave-w6'>{title}</div>}
{title &&
<div className={css.body}>
<XVegaVisualization model={{ specification, data, grammar }} />
</div>}
{!title &&
<div className={css.body} style={{marginTop: 0}}>
<XVegaVisualization model={{ specification, data, grammar }} />
</div>}
</div>
</div>
)
}
Expand Down

0 comments on commit 553b9d7

Please sign in to comment.