Skip to content

Commit

Permalink
fix(programrules): make static text fullwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Nov 10, 2023
1 parent eac3310 commit a118f06
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { getInstance } from 'd2/lib/d2';
import React from 'react';
import FormBuilder from 'd2-ui/lib/forms/FormBuilder.component';
import Dialog from 'material-ui/Dialog';
Expand Down Expand Up @@ -679,7 +678,7 @@ class ProgramRuleActionDialog extends React.Component {
fieldMapping.optional.includes(field.name);

if (isOptional || isRequired) {
field.props.style = { display: 'inline-block' };
field.props.style = { display: 'block' };
if (isRequired) {
field.props.isRequired = true;
field.props.labelText += ' (*)';
Expand Down

0 comments on commit a118f06

Please sign in to comment.