jongacnik / kirby-fields-block

Kirby block preview plugin to directly render block fields
MIT License
109 stars 5 forks source link

Writer field in combination with Kirby-Field-Block resolves in 'invisible' options #18

Open ceesvanegmond opened 1 year ago

ceesvanegmond commented 1 year ago

Hello,

When using the writer field in a block preview; not all options are visible. Probably a z-index? I cannot seem to debug it properly because whenever I want to inspect something the whole <div> disappears.

Screenshot_2023-03-23_at_12 34 51 Screenshot 2023-03-27 at 11 16 42
jongacnik commented 1 year ago

Hey, thanks for flagging. Heads up, I am quite busy with other projects and won't be able to look into this for some time. Let me know if you track anything down.

p.s. Looks like this functionality will be part of core in an upcoming release of Kirby, so perhaps you can make-do until then!

ceesvanegmond commented 1 year ago

@jongacnik It seems that it's an overflow problem. Adding this css in my panel.css seems to fix it but I don't know if this will harm something else within the package.

.k-block-fields-preview {
    overflow: visible !important;
}

We could remove the overflow property on .k-block-fields-preview; that seems to fix it.

ceesvanegmond commented 1 year ago

https://github.com/jongacnik/kirby-fields-block/pull/19