Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
design suggestions
Browse files Browse the repository at this point in the history
shahzad31 committed Feb 11, 2022
1 parent 159ffd0 commit 56c0bb4
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -51,6 +51,7 @@ export const AlignOptions: React.FC<TitlePositionProps> = ({ state, setState })
setState({ ...state, textAlign: id as MetricState['textAlign'] });
}}
isIconOnly
buttonSize="compressed"
/>
);
};
Original file line number Diff line number Diff line change
@@ -92,6 +92,7 @@ export const SizeOptions: React.FC<TitlePositionProps> = ({ state, setState }) =
}}
itemLayoutAlign="top"
hasDividers
fullWidth
/>
);
};
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ export const TextFormattingOptions: React.FC<TitlePositionProps> = ({ state, set
</>
}
>
<EuiFlexGroup gutterSize="s">
<EuiFlexGroup gutterSize="s" responsive={false}>
<EuiFlexItem>
<SizeOptions state={state} setState={setState} />
</EuiFlexItem>
<EuiFlexItem>
<EuiFlexItem grow={false}>
<AlignOptions state={state} setState={setState} />
</EuiFlexItem>
</EuiFlexGroup>
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ export const TitlePositionOptions: React.FC<TitlePositionProps> = ({ state, setS
return (
<EuiFormRow
display="columnCompressed"
fullWidth
label={
<>
{i18n.translate('xpack.lens.metricChart.titlePositionLabel', {
@@ -41,6 +42,7 @@ export const TitlePositionOptions: React.FC<TitlePositionProps> = ({ state, setS
onChange={(value) => {
setState({ ...state, titlePosition: value as MetricState['titlePosition'] });
}}
buttonSize="compressed"
/>
</EuiFormRow>
);

0 comments on commit 56c0bb4

Please sign in to comment.