ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Allow bard field toolbar stickiness

Open rubzie opened this issue 2 years ago • 7 comments
trafficstars

We'd like our bard field toolbars to also be sticky when they're inside replicator fields. Currently they are not. This is annoying when adding more content than a screen full, which happens often on some fields. The CSS below specifically excludes bard field toolbars in replicator fields, is there a reason for this? If not, our agency suggested changing this CSS to solve the problem:

.workspace .publish-fields:not(.replicator-set-body)>.bard-fieldtype .bard-fixed-toolbar {
position: sticky;
}

Example of the user experience of this currently: 20231013-eUETKOOA-Advertenties ‹ Flexible Pages ‹ Collections ‹ Statamic

rubzie avatar Oct 13 '23 13:10 rubzie

I think this was intentionally removed in v4 beta? @jackmcdade

tobimori avatar Oct 16 '23 09:10 tobimori

I was looking into this as well. I found that it was explicitly decided in this PR to only apply to top level fields, but I'm not sure why.

Diewy avatar Nov 06 '23 12:11 Diewy

Ah thanks for the reference @Diewy! Can you enlighten us maybe, @jackmcdade? On why, and also maybe on how we could change it ourselves (feels a bit much to make an addon for it though :o)

rubzie avatar Nov 24 '23 17:11 rubzie

Because they caused completely unusable experiences when you had a grid with multiple bard fields on mobile and other situations. They'd stack up so deep there'd be no textarea left.

jackmcdade avatar Nov 24 '23 17:11 jackmcdade

Maybe it's possible to allow it in a Replicator, but not inside Bard?

tobimori avatar Nov 24 '23 17:11 tobimori

By what logic would make one okay and not the other since they share basically everything?

jackmcdade avatar Nov 24 '23 17:11 jackmcdade

Replicator doesn't have a fixed toolbar. Make it stop being fixed as soon as the first Bard field is nested inside a Bard field.

tobimori avatar Nov 24 '23 17:11 tobimori