Skip to content
Snippets Groups Projects
Commit 73d4be6d authored by rhenck's avatar rhenck
Browse files

[editor] Use outline for selected section marking

This needs a z-index on the selected section, since the outline collides 
with other sections and is not shown on this side.
parent 6d6b1db0
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment