Skip to content

Commit

Permalink
Improve top element spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
jayb committed Jan 9, 2025
1 parent b418398 commit 26031ba
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/chart/src/CdcChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ const CdcChart = ({
isDashboard={isDashboard}
title={title}
superTitle={config.superTitle}
classes={['chart-title', `${config.theme}`, 'cove-component__header']}
classes={['chart-title', `${config.theme}`, 'cove-component__header', 'mb-3']}
style={undefined}
/>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.cdc-open-viz-module {
.cdc-chart-inner-container .cove-component__content {
padding: 1rem 15px 27px 0 !important;
padding: 0 15px 27px 0 !important;
}
&.isEditor {
overflow: auto;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/ui/Title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Title = (props: HeaderProps) => {
const { isDashboard, title, superTitle, classes = [], showTitle = true, ariaLevel = 2 } = props

// standard classes every vis should have
const updatedClasses = ['cove-component__header', 'component__header', ...classes]
const updatedClasses = ['cove-component__header', 'component__header', 'mb-3', ...classes]

return (
title &&
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard/src/CdcDashboardComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export default function CdcDashboard({ initialState, isEditor = false, isDebug =
classes={[`dashboard-title`, `${config.dashboard.theme ?? 'theme-blue'}`]}
/>
{/* Description */}
{description && <div className='subtext'>{parse(description)}</div>}
{description && <div className='subtext mb-3'>{parse(description)}</div>}
{/* Visualizations */}
{config.rows &&
config.rows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const MultiConfigTabs = () => {

if (!config.multiDashboards) return null
return (
<ul className='nav nav-tabs multi-config-tabs'>
<ul className='nav nav-tabs multi-config-tabs mb-4'>
{tabs.map((tab, index) => (
<Tab
key={tab + index}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const MultiTabs = () => {

if (!config.multiDashboards) return null
return (
<ul className='nav nav-tabs multi-config-tabs'>
<ul className='nav nav-tabs multi-config-tabs mb-4'>
{tabs.map((tab, index) => (
<li key={tab + index} className='nav-item'>
<a
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard/src/components/VisualizationRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const VisualizationRow: React.FC<VizRowProps> = ({
<div
key={`vis__${index}__${colIndex}`}
className={`col-12 col-md-${col.width}${!shouldShow ? ' d-none' : ''}${
hideVisualization ? ' hide-parent-visualization' : ' mt-4'
hideVisualization ? ' hide-parent-visualization' : ' mb-4'
}`}
>
{row.toggle && !hideVisualization && (
Expand Down
2 changes: 1 addition & 1 deletion packages/map/src/CdcMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ const CdcMap = ({
<SkipTo skipId={tabId} skipMessage={`Skip over annotations`} key={`skip-annotations`} />
)}

{general.introText && <section className='introText mb-4 mt-3'>{parse(general.introText)}</section>}
{general.introText && <section className='introText mb-4'>{parse(general.introText)}</section>}

{state?.filters?.length > 0 && (
<Filters
Expand Down

0 comments on commit 26031ba

Please sign in to comment.