Skip to content

Commit be8fd12

Browse files
committed
refactor(view): align title and select horizontally in AuthorBarChart
1 parent f1de0b9 commit be8fd12

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

packages/view/src/components/Statistics/AuthorBarChart/AuthorBarChart.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
}
1313

1414
&__header {
15+
display: flex;
16+
justify-content: space-between;
17+
align-items: center;
1518
width: 100%;
1619
text-align: right;
1720
}
1821

1922
&__chart {
2023
overflow: visible;
21-
margin: 1.25rem 2.5rem 2.5rem;
24+
margin: $spacing-2xl $spacing-3xl $spacing-3xl;
2225
}
2326

2427
&__axis {
@@ -62,8 +65,8 @@
6265
&__tooltip {
6366
display: none;
6467
position: absolute;
65-
padding: 0.5rem 1rem;
66-
border-radius: 0.3125rem;
68+
padding: $spacing-sm $spacing-lg;
69+
border-radius: $radius-xs;
6770
font-size: $font-size-caption;
6871
text-align: center;
6972
line-height: 1.5;

packages/view/src/components/Statistics/AuthorBarChart/AuthorBarChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ const AuthorBarChart = () => {
269269

270270
return (
271271
<div className="author-bar-chart">
272-
<p className="author-bar-chart__title">Author Bar Chart</p>
273272
<div className="author-bar-chart__header">
273+
<p className="author-bar-chart__title">Author Bar Chart</p>
274274
<FormControl>
275275
<Select
276276
value={metric}

0 commit comments

Comments
 (0)