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 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 1.4.1
- Make text underlinable - Make text underlinable
- Fix marking of text - Fix marking of text
......
.section{
position: relative;
display: block;
overflow: auto;
width: 100%
}
...@@ -3,17 +3,13 @@ ...@@ -3,17 +3,13 @@
[intersectionContainer]="pagesContainer" [intersectionContainer]="pagesContainer"
(intersecting)="onIntersection()"> (intersecting)="onIntersection()">
<app-section *ngFor="let section of page.sections; let i = index" <app-section *ngFor="let section of page.sections; let i = index"
class="section"
[pageIndex] = parentArrayIndex [pageIndex] = parentArrayIndex
[parentForm]="pageForm" [parentForm]="pageForm"
[parentArrayIndex]="i" [parentArrayIndex]="i"
[section]="section" [section]="section"
[ngStyle]="{ [style.backgroundColor]="section.backgroundColor"
position: 'relative', [style.minHeight]=" section.dynamicPositioning ? 'auto' : section.height + 'px'">
display: section.dynamicPositioning ? 'contents' : 'block',
overflow: 'auto',
width: '100%',
'background-color': section.backgroundColor,
'min-height': section.dynamicPositioning ? 'auto' : section.height + 'px'}">
</app-section> </app-section>
</div> </div>
<div appIntersectionDetection <div appIntersectionDetection
......
...@@ -8,7 +8,8 @@ import { Page } from '../../../../../common/models/page'; ...@@ -8,7 +8,8 @@ import { Page } from '../../../../../common/models/page';
@Component({ @Component({
selector: 'app-page', selector: 'app-page',
templateUrl: './page.component.html' templateUrl: './page.component.html',
styleUrls: ['./page.component.css']
}) })
export class PageComponent implements OnInit { 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