Skip to content
Snippets Groups Projects
Unverified Commit acf45f85 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #402 from HumanBrainProject/bugfix/splashscreenscroll

bugfix: fix scroll bar flickering
parents 360d799f 161e5143
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,6 @@
width:100%;
height:100%;
position:relative;
/* n.b. needed for scrolling splash screen */
overflow: auto;
}
......
:host
{
display: block;
display: inline-block;
overflow: auto;
height: 100%;
width: 100%;
}
.font-stretch
......
<div
#parentContainer
class="m-5 d-flex flex-row flex-wrap justify-content-center align-items-stretch pe-none">
<mat-card
(mousedown)="activatedTemplate$.next(template)"
matRipple
*ngFor="let template of loadedTemplate$ | async | filterNull"
class="m-3 col-md-12 col-lg-6 pe-all mw-400px">
<mat-card-header>
<mat-card-title class="text-nowrap font-stretch">
{{ template.properties.name }}
</mat-card-title>
</mat-card-header>
<img
[src]="template.properties.name | getTemplateImageSrcPipe"
[srcset]="template.properties.name | getTemplateImageSrcPipe | imgSrcSetPipe"
sizes="(max-width:576px) 90vw;(max-width: 768px) 50vw; 400px"
[alt]="'Screenshot of ' + template.properties.name"
mat-card-image />
<mat-card-content>
{{ template.properties.description }}
</mat-card-content>
<!-- n.b. div wrapper is required for scrolling to work properly -->
<div class="h-100 w-100 overflow-auto">
<mat-card-content>
<mat-card-subtitle class="text-nowrap">
Parcellations available
</mat-card-subtitle>
<button
(mousedown)="$event.stopPropagation()"
(click)="$event.stopPropagation(); selectTemplateParcellation(template, parcellation)"
*ngFor="let parcellation of template.parcellations"
mat-button
color="primary">
{{ parcellation.name }}
</button>
</mat-card-content>
<div
#parentContainer
class="p-5 w-100 d-flex flex-row flex-wrap justify-content-center align-items-stretch pe-all">
<mat-card
(mousedown)="activatedTemplate$.next(template)"
matRipple
*ngFor="let template of loadedTemplate$ | async | filterNull"
class="m-3 col-md-12 col-lg-6 pe-all mw-400px">
<mat-card-header>
<mat-card-title class="text-nowrap font-stretch">
{{ template.properties.name }}
</mat-card-title>
</mat-card-header>
<img
[src]="template.properties.name | getTemplateImageSrcPipe"
[srcset]="template.properties.name | getTemplateImageSrcPipe | imgSrcSetPipe"
sizes="(max-width:576px) 90vw;(max-width: 768px) 50vw; 400px"
[alt]="'Screenshot of ' + template.properties.name"
mat-card-image />
<mat-card-content>
{{ template.properties.description }}
</mat-card-content>
<!-- required... or on ripple, angular adds 16px margin to the bottom -->
<!-- see https://github.com/angular/components/issues/10898 -->
<mat-card-footer>
</mat-card-footer>
</mat-card>
<mat-card-content>
<mat-card-subtitle class="text-nowrap">
Parcellations available
</mat-card-subtitle>
<button
(mousedown)="$event.stopPropagation()"
(click)="$event.stopPropagation(); selectTemplateParcellation(template, parcellation)"
*ngFor="let parcellation of template.parcellations"
mat-button
color="primary">
{{ parcellation.name }}
</button>
</mat-card-content>
<!-- required... or on ripple, angular adds 16px margin to the bottom -->
<!-- see https://github.com/angular/components/issues/10898 -->
<mat-card-footer>
</mat-card-footer>
</mat-card>
</div>
</div>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment