Skip to content

Commit

Permalink
fix: wrap SegmentedControl in flex-grow: 0
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott committed Mar 12, 2024
1 parent ffd4632 commit f16baa7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/components/Dialogs/PeriodDimension/PeriodDimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,20 +176,22 @@ export const PeriodDimension = ({ dimension, onClose }) => {
onClose={onClose}
title={dimension.name}
>
<SegmentedControl
options={[
{
label: i18n.t('Choose from presets'),
value: OPTION_PRESETS,
},
{
label: i18n.t('Define start - end dates'),
value: OPTION_START_END_DATES,
},
]}
selected={entryMethod}
onChange={onSegmentedControlChange}
></SegmentedControl>
<div className={styles.navigation}>
<SegmentedControl
options={[
{
label: i18n.t('Choose from presets'),
value: OPTION_PRESETS,
},
{
label: i18n.t('Define start - end dates'),
value: OPTION_START_END_DATES,
},
]}
selected={entryMethod}
onChange={onSegmentedControlChange}
></SegmentedControl>
</div>
<div className={styles.entry}>
{entryMethod === OPTION_PRESETS && (
<BasePeriodDimension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
margin-top: var(--spacers-dp8);
padding-top: var(--spacers-dp12);
}

.navigation {
flex-grow: 0;
}

0 comments on commit f16baa7

Please sign in to comment.