Umbraco.Community.BlockPreview icon indicating copy to clipboard operation
Umbraco.Community.BlockPreview copied to clipboard

Added some spacing and a border to the blocks.

Open AaronSadlerUK opened this issue 2 years ago • 2 comments

I have added a 4px top margin plus a border to make the blocks distinguishable with each other.

image

I was unable to the css stylesheet to load so it's also inline, not sure if that's a limitation of the backoffice?

Fixes #5

AaronSadlerUK avatar Feb 03 '23 12:02 AaronSadlerUK

I'm a little torn on this one - in my opinion the preview should appear as close to the live site as possible but I get the need to be able to see the separation of blocks without having to hover/tab through them.

rickbutterfield avatar Feb 25 '23 09:02 rickbutterfield

@AaronSadlerUK @rickbutterfield an alternative to this is to add some markup to the Component Views to inject a class based on the IsBlockPreview extension method - that way you can style the padding/margin/border any way you like without having to inject CSS etc.

robertjf avatar Sep 17 '23 04:09 robertjf