statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.71k stars 508 forks source link

Bard-Fixed-Toolbar in Replicator-Fieldtype isn't sticky #1724

Closed wiebkevogel closed 4 years ago

wiebkevogel commented 4 years ago

Bug Description

In a Replicator-Fieldtype, the Bard-Fixed-Toolbar is overwritten by 'position: relative'. Should the Bard-Fixed-Toolbar not be sticky in a Replicator-Fieldtype?

In the following code snippet we made the bard-fixed-toolbar sticky inside a Replicator-Fieldtype. If a Bard-Fixed-Toolbar is set in a Bard-Fieldtype that is placed in another Bard-Fieldtype, it will still not be sticky. https://pastebin.com/AfPGsiFS

How to Reproduce

  1. Make sure that the toolbar_mode is fixed
  2. Place a Bard-Fieldtype in a Replicator-Fieldtype
  3. Scroll the page until the toolbar should stop at the top
  4. Toolbar isn't sticky

Extra Detail

Environment

Statamic version: 2c0592a

PHP version: 7.3.14

Install method (choose one):

jackmcdade commented 4 years ago

The sticky mode is only available by design when Bard is a top-level fieldtype. The UI can look really funky and broken when it's smaller, line wrapping, etc.

Swennet commented 7 months ago

@jackmcdade We get quite a few questions from our clients asking why the fixed toolbar is not working in bard fields in replicator content. This is especially inconvenient for them, since we use replicator fields as "page builders" in which bard content can become quite long.

Is there any chance this could get looked at again?