laravel / nova-issues

554 stars 34 forks source link

Using `->alwaysShow()` on Markdown result in different container width #6173

Closed mrleblanc101 closed 9 months ago

mrleblanc101 commented 9 months ago

Description:

I created a Markdown field, it has w-3/5 like so in the Form view like so:

Markdown::make(__('Content'), 'content')
    ->alwaysShow()
    ->withFiles('public'),

Screenshot 2024-02-02 at 1 25 27 PM

In the Details view, it results in a very narrow field because of .prose { max-width: 65ch } which I don't think is normal. Screenshot 2024-02-02 at 1 24 07 PM

After fiddling around, I removed the ->alwaysShow(). Resulting in a field that takes the fullwidth like so: Screenshot 2024-02-02 at 1 24 16 PM

This seems better, but still looks odds to me. Shouldn't it also be w-3/5 like on the Form View ? Here is what I would expect, whether I'm using ->alwaysShow() or not: Screenshot 2024-02-02 at 1 29 27 PM

mrleblanc101 commented 9 months ago

Also, I might open another ticket if you think this is relevant, but shouldn't the font between the Markdown "Write" and "Preview" tab match exactly ? Currently it switch from Menlo 14px regular to Nunito Sans 12pt ExtraLight. 2024-02-02 13 32 59