Skip to content
Snippets Groups Projects
Commit cabcae80 authored by jojohoch's avatar jojohoch
Browse files

[player] Show background color for dynamic sections

parent d5f74cca
No related branches found
No related tags found
No related merge requests found
Player
======
1.5.0
- Show the magnifier only when the mouse is over the image
- Fix saving of inputs via the virtual keyboard
- Show background color for dynamic sections
1.4.1
- Make text underlinable
- Fix marking of text
......
.section{
position: relative;
display: block;
overflow: auto;
width: 100%
}
......@@ -3,17 +3,13 @@
[intersectionContainer]="pagesContainer"
(intersecting)="onIntersection()">
<app-section *ngFor="let section of page.sections; let i = index"
class="section"
[pageIndex] = parentArrayIndex
[parentForm]="pageForm"
[parentArrayIndex]="i"
[section]="section"
[ngStyle]="{
position: 'relative',
display: section.dynamicPositioning ? 'contents' : 'block',
overflow: 'auto',
width: '100%',
'background-color': section.backgroundColor,
'min-height': section.dynamicPositioning ? 'auto' : section.height + 'px'}">
[style.backgroundColor]="section.backgroundColor"
[style.minHeight]=" section.dynamicPositioning ? 'auto' : section.height + 'px'">
</app-section>
</div>
<div appIntersectionDetection
......
......@@ -8,7 +8,8 @@ import { Page } from '../../../../../common/models/page';
@Component({
selector: 'app-page',
templateUrl: './page.component.html'
templateUrl: './page.component.html',
styleUrls: ['./page.component.css']
})
export class PageComponent implements OnInit {
......
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