thedevdojo / voyager

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

Optional detail "display" is not working #5445

Open JdSeus opened 3 years ago

JdSeus commented 3 years ago

Laravel version

8.54

PHP version

PHP 7.3.28

Voyager version

1.5

Database

Ver 15.1 Distrib 10.4.19-MariaDB

Description

I am trying to use the "display" option of the JSON that goes in the "Optional Details" of the Edit Bread Menu, but it doesn't seem to have the expected effect.

Steps to reproduce

I followed the documentation in this part: https://voyager-docs.devdojo.com/bread/introduction-1.

To show the problem, I have created a new project and perfomed those steps:

First, I have created a table: image

Then, I have added a BREAD to the table and setted the display option: image

Here I am browsing the table when it was still empty, after adding the BREAD. image

Since it was empty, I have added a generic information to the field. image

After adding this information, it is possible to see that the "custom_id" was not added to the div wraper of the element as it should according to the documentation. Also, the field does not occupy 25% of the 12-grid-system as it should with "width": "3". image

Expected behavior

The correct behavior is to have a div with the id equal to "custom_id" at the end of the steps. Also,, the field should occupy 25% of the 12-grid system.

Additional context

No response

MrCrayon commented 3 years ago

Sadly that setting only works in edit/add page not in browse or read mode.