Skip to content

Commit

Permalink
Merge pull request #137 from thisissoon/feature/display-track-time-fr…
Browse files Browse the repository at this point in the history
…om-spotify

Feature: Display track time from spotify
  • Loading branch information
edoparearyee committed Jul 20, 2015
2 parents 5a918f4 + 54ce6f3 commit 771e4a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion app/less/default/modules/track.less
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
min-width: 30px;
margin-bottom: 10px;
position: absolute;
top: 30px;
top: 15px;
right: 10px;

.footer &,
Expand Down Expand Up @@ -116,6 +116,7 @@
.track-time {
.align-self(flex-end);
min-width: 100px;
padding-right: 20px;

.footer & {
.align-self(center);
Expand All @@ -125,6 +126,11 @@
margin-top: 10px;
}
}

.footer &,
.queue & {
padding-right: 0;
}
}

.img-user {
Expand Down
2 changes: 2 additions & 0 deletions app/less/mobile/modules/track.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
.align-self(center);
position: static;
min-width: 10px;
margin-bottom: 0;
margin-top: 10px;

.btn-context {
.opacity(1);
Expand Down
4 changes: 2 additions & 2 deletions app/partials/track.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
</ul>
</div>

<div ng-if="track.duration" class="track-right track-time text-right">
<p><span ng-show="timer">{{ timer.elapsedTime | date: "H:mm:ss" | removeLeadingZeros }} / </span><span class="text-muted">{{ track.duration | date: "H:mm:ss" | removeLeadingZeros }}</span></p>
<div ng-if="track.duration || track.duration_ms" class="track-right track-time text-right">
<p><span ng-show="timer">{{ timer.elapsedTime | date: "H:mm:ss" | removeLeadingZeros }} / </span><span class="text-muted">{{ track.duration || track.duration_ms | date: "H:mm:ss" | removeLeadingZeros }}</span></p>
</div>

0 comments on commit 771e4a3

Please sign in to comment.