Skip to content

Commit f9ffb17

Browse files
committed
4410: Fixed display of boolean value
1 parent 56cdd8d commit f9ffb17

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

assets/styles/app.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,22 @@ h2 {
224224
color: inherit;
225225
}
226226
}
227+
228+
/* Un-flex label and value for boolean fields back to label: value */
229+
.ea-detail .field-group.field-boolean {
230+
flex-direction: initial;
231+
232+
.field-label {
233+
flex: initial;
234+
margin: 0 15px 0 0;
235+
min-inline-size: initial;
236+
text-align: right;
237+
}
238+
239+
.field-value {
240+
flex: initial;
241+
inline-size: initial;
242+
min-inline-size: initial;
243+
text-align: initial;
244+
}
245+
}

src/Controller/Admin/ReportCrudController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function configureFields(string $pageName): iterable
5050
yield UrlField::new('sysLink')->setLabel('entity.report.sys_id')->setLabel('entity.report.sys_link')
5151
->formatValue(static fn ($value) => new TranslatableMessage('Link'));
5252
yield BooleanField::new('textSet')->setLabel('entity.report.text')
53-
->renderAsSwitch(false);
53+
->renderAsSwitch(false)
54+
->hideValueWhenFalse();
5455

5556
return;
5657

0 commit comments

Comments
 (0)