diff --git a/projects/editor/src/app/unit-view/page-view/canvas/section-static.component.ts b/projects/editor/src/app/unit-view/page-view/canvas/section-static.component.ts index ef49ec58f3c202b09452efcc0e7d8f56178450f6..ab8b307b8752b84ca518941ba6e79bab3b48455a 100644 --- a/projects/editor/src/app/unit-view/page-view/canvas/section-static.component.ts +++ b/projects/editor/src/app/unit-view/page-view/canvas/section-static.component.ts @@ -9,7 +9,8 @@ import { UIElementType } from '../../../../../../common/models/uI-element'; selector: 'app-section-static', template: ` <div #sectionElement class="section-wrapper" - [style.border]="isSelected ? '2px solid #ff4081': '1px dotted'" + [style.outline]="isSelected ? '2px solid #ff4081': '1px dotted'" + [style.z-index]="isSelected ? 1 : 0" [style.height.px]="section.height" [style.background-color]="section.backgroundColor" (dragover)="$event.preventDefault()" (drop)="newElementDropped($event)"> @@ -20,7 +21,7 @@ import { UIElementType } from '../../../../../../common/models/uI-element'; </div> `, styles: [ - '.section-wrapper {width: 100%}' + '.section-wrapper {position: relative; width: 100%}' ] }) export class SectionStaticComponent {