fix: additional styling to match Umbraco.BlockGrid.ExampleWebsite #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
BlockPreview output should be as close as possible to the Angular/WebComponent equivalent.
Issue
Based off of the source repo, BlockPreview should ideally provide a 1:1 replication.
Umbraco 13 Angular View:
Umbraco 13 BlockPreview View:
Umbraco 13 BlockPreview View with Fix:
Note
I have also added position:relative to the
.card
class as this was missing from the original styling. In Umbraco.BlockGrid.Example.Website project, the card is abutton
element rather than adiv
which containsposition: relative
.Fix
Applied styling to the container element
.blockelement__draggable-element
produced by BlockPreview to grow to the full height of the area.This fix could potentially sit in
/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/views/block-preview.html
, however I decided against an inline style fix as I avoid using them when possible and in the event people have worked around this in their own styling I did not want to force a change on their website styling.