better display of poll button #93

This commit is contained in:
Nicolas Constant 2019-06-06 19:01:04 -04:00
parent f72141a794
commit b8311371f9
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
3 changed files with 10 additions and 7 deletions

View File

@ -22,7 +22,7 @@
<div class="poll__voting">
<button href *ngIf="!poll.voted && !poll.expired" class="btn btn-sm btn-custom-primary poll__btn-vote"
title="don't boo, vote!" (click)="vote()">Vote</button>
<a href class="poll__refresh" *ngIf="poll.voted && !poll.expired">refresh </a>
<div class="poll__statistics"><span *ngIf="poll.voted"> · </span>{{poll.votes_count}} votes · X days left</div>
<a href class="poll__refresh" *ngIf="poll.voted || poll.expired" title="refresh poll">refresh</a>
<div class="poll__statistics"><span *ngIf="poll.voted || poll.expired" class="poll__separator">·</span>{{poll.votes_count}} votes<span *ngIf="!poll.expired" class="poll__separator">· X days left</span></div>
</div>
</div>

View File

@ -120,7 +120,7 @@
margin: 0 0 5px 5px;
padding: 0 5px 0 5px;
position: relative;
height: 26px;
height: 27px;
&--data {
position: absolute;
@ -142,7 +142,7 @@
top:0;
left:0;
width: calc(100%);
height: 21px;
height: 22px;
z-index: 1;
float: left;
border-radius: 2px;
@ -152,6 +152,11 @@
}
}
}
&__separator {
display: inline-block;
margin: 0 5px;
}
}
.noselect {
@ -166,6 +171,5 @@
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Non-prefixed version, currently
supported by Chrome and Opera */
/* Non-prefixed version, currently supported by Chrome and Opera */
}

View File

@ -82,7 +82,6 @@ class PollOptionWrapper implements PollOption {
this.percentage = ((this.votes_count / totalVotes) * 100).toFixed(0);
}
this.isMax = isMax;
console.warn(this.isMax);
}
id: number;