Fix stats campaig navigation scroll

pull/38/head
HardiReady 2018-08-04 11:56:54 +02:00
parent 085c7d3294
commit ae7dd6afaf
5 changed files with 9 additions and 32 deletions

View File

@ -1,10 +1,3 @@
html {
height: 100%;
}
body {
min-height: 100%;
}
ul {
list-style-type: none;
margin: 0;
@ -15,17 +8,6 @@ li {
display: inline;
}
.sidebar-toggle-btn {
background: #dadada;
filter: drop-shadow(2px 1px 1px #666);
margin-left: -12px;
z-index: 500;
}
.sidebar-toggle-btn mat-icon.mat-icon {
color: #666666;
}
.content {
padding-left: 15px;
padding-right: 15px;

View File

@ -1,6 +1,6 @@
.scroll-btn {
position: absolute;
height: 53px;
height: 46px;
width: 32px;
cursor: pointer;
}
@ -8,15 +8,11 @@
.scroll-btn-right {
top: 50px;
left: calc(100vw - 45px);
background: linear-gradient(to right, rgba(255, 255, 255, 0.89), white);
}
.scroll-btn-left {
background: linear-gradient(to right, white, rgba(255, 255, 255, 0.89));
}
.scroll-btn mat-icon {
height: 53px
height: 46px;
width: 28px;
}
.campaign-horizontal-list {
@ -26,13 +22,12 @@
margin: 0;
padding: 0;
overflow: hidden;
box-shadow: #dadada 0 1px 5px;
box-shadow: #666666 1px 1px 4px;
}
.campaign-entry {
border: 1px solid #222222;
min-width: 120px;
width: 20%;
min-width: 20%;
max-height: 4em;
padding: 10px 0;
text-align: center;

View File

@ -1,4 +1,4 @@
<div class="scroll-btn scroll-btn-left"
<div class="scroll-btn"
*ngIf="isLeftScrollVisible"
(mouseenter)="setRepeater(-10)"
(mouseleave)="clearRepeater()">

View File

@ -1,4 +1,4 @@
import {Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
import {Component, ElementRef, EventEmitter, Input, OnChanges, Output, ViewChild} from '@angular/core';
import {Campaign} from '../../../models/model-interfaces';
@Component({
@ -6,7 +6,7 @@ import {Campaign} from '../../../models/model-interfaces';
templateUrl: './campaign-navigation.component.html',
styleUrls: ['./campaign-navigation.component.css']
})
export class CampaignNavigationComponent implements OnInit {
export class CampaignNavigationComponent implements OnChanges {
@Input() campaigns: Campaign[];
@ -22,7 +22,7 @@ export class CampaignNavigationComponent implements OnInit {
repeater;
ngOnInit() {
ngOnChanges() {
this.isRightScrollVisible = this.campaigns.length > 4;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 892 KiB

After

Width:  |  Height:  |  Size: 809 KiB