Block Grid Editor: Removal of the forced placement feature (#13400)

* removal of the forceLeft/forceRight code

* removal of forced placement in css

* bring back removed code
This commit is contained in:
Niels Lyngsø
2022-11-16 11:52:40 +01:00
committed by Nikolaj
parent 8a04f9fd99
commit dc2358f4f0
16 changed files with 31 additions and 383 deletions

View File

@@ -7,8 +7,7 @@
<div class="umb-block-grid__layout-container">
@foreach (var item in Model)
{
bool attrForceLeft = item.ForceLeft;
bool attrForceRight = item.ForceRight;
<div
class="umb-block-grid__layout-item"
data-content-element-type-alias="@item.Content.ContentType.Alias"
@@ -16,8 +15,6 @@
data-element-udi="@item.ContentUdi"
data-col-span="@item.ColumnSpan"
data-row-span="@item.RowSpan"
@(attrForceLeft ? "data-force-left" : null)
@(attrForceRight ? "data-force-right" : null)
style=" --umb-block-grid--item-column-span: @item.ColumnSpan; --umb-block-grid--item-row-span: @item.RowSpan; ">
@{
var partialViewName = "blockgrid/Components/" + item.Content.ContentType.Alias;