Skip to content

Commit

Permalink
fix: prevent radio criterion shrinking and improve alignment\n\n- Add…
Browse files Browse the repository at this point in the history
… flexShrink: 0 style to prevent radio button compression\n- Add align-items-center class for better vertical alignment
  • Loading branch information
milad-emami committed Nov 6, 2024
1 parent 1f729be commit faf5d20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/containers/CriterionContainer/RadioCriterion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ export class RadioCriterion extends React.Component {
<Form.RadioSet name={config.name} value={data}>
{config.options.map((option) => (
<Form.Radio
className="criteria-option"
className="criteria-option align-items-center"
key={option.name}
value={option.name}
description={intl.formatMessage(messages.optionPoints, { points: option.points })}
onChange={this.onChange}
disabled={!isGrading}
style={{ flexShrink: 0 }}
>
{option.label}
</Form.Radio>
Expand Down

0 comments on commit faf5d20

Please sign in to comment.