Fix stats campaig navigation scroll
parent
085c7d3294
commit
ae7dd6afaf
|
@ -1,10 +1,3 @@
|
||||||
html {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
min-height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -15,17 +8,6 @@ li {
|
||||||
display: inline;
|
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 {
|
.content {
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.scroll-btn {
|
.scroll-btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 53px;
|
height: 46px;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
@ -8,15 +8,11 @@
|
||||||
.scroll-btn-right {
|
.scroll-btn-right {
|
||||||
top: 50px;
|
top: 50px;
|
||||||
left: calc(100vw - 45px);
|
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 {
|
.scroll-btn mat-icon {
|
||||||
height: 53px
|
height: 46px;
|
||||||
|
width: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.campaign-horizontal-list {
|
.campaign-horizontal-list {
|
||||||
|
@ -26,13 +22,12 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: #dadada 0 1px 5px;
|
box-shadow: #666666 1px 1px 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.campaign-entry {
|
.campaign-entry {
|
||||||
border: 1px solid #222222;
|
border: 1px solid #222222;
|
||||||
min-width: 120px;
|
min-width: 20%;
|
||||||
width: 20%;
|
|
||||||
max-height: 4em;
|
max-height: 4em;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="scroll-btn scroll-btn-left"
|
<div class="scroll-btn"
|
||||||
*ngIf="isLeftScrollVisible"
|
*ngIf="isLeftScrollVisible"
|
||||||
(mouseenter)="setRepeater(-10)"
|
(mouseenter)="setRepeater(-10)"
|
||||||
(mouseleave)="clearRepeater()">
|
(mouseleave)="clearRepeater()">
|
||||||
|
|
|
@ -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';
|
import {Campaign} from '../../../models/model-interfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -6,7 +6,7 @@ import {Campaign} from '../../../models/model-interfaces';
|
||||||
templateUrl: './campaign-navigation.component.html',
|
templateUrl: './campaign-navigation.component.html',
|
||||||
styleUrls: ['./campaign-navigation.component.css']
|
styleUrls: ['./campaign-navigation.component.css']
|
||||||
})
|
})
|
||||||
export class CampaignNavigationComponent implements OnInit {
|
export class CampaignNavigationComponent implements OnChanges {
|
||||||
|
|
||||||
@Input() campaigns: Campaign[];
|
@Input() campaigns: Campaign[];
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ export class CampaignNavigationComponent implements OnInit {
|
||||||
|
|
||||||
repeater;
|
repeater;
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnChanges() {
|
||||||
this.isRightScrollVisible = this.campaigns.length > 4;
|
this.isRightScrollVisible = this.campaigns.length > 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 892 KiB After Width: | Height: | Size: 809 KiB |
Loading…
Reference in New Issue