thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.77k stars 2.67k forks source link

BREAD: Add "clear" property to field's Optional Details #5675

Open vagra opened 2 years ago

vagra commented 2 years ago

Laravel version

No response

PHP version

No response

Voyager version

No response

Description of problem

In add-edit pages, I would like to set some fields to "clear:both" style, so that it wraps to the next line, which helps me to design the page better.

Currently I can only do this: set an "id" in the "display" property of the field, and then set the "clear:both;" style for this id in the css file, but this is one more step.

like this image: 20220923_163747

I add "id" property to cover, devdate, oem_zh, model_zh, spec, then set the css: `#cover,

devdate,

oem_zh,

model_zh,

spec {

clear: both;

}`

Proposed solution

Can you add a "clear" property to the display property, which is more convenient.

Alternatives considered

No response

Additional context

No response