1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00

Make queue handle long names sanely.

This commit is contained in:
Dan Barber 2013-12-07 16:58:38 +00:00
parent b45787d752
commit 7e21e820ec
2 changed files with 8 additions and 2 deletions

View File

@ -8,8 +8,14 @@
margin: 0 margin: 0
.artist .artist
font-size: 0.8em font-size: 0.8em
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
.title .title
font-weight: bold font-weight: bold
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
li li
position: relative position: relative
padding: 10px padding: 10px
@ -20,6 +26,7 @@
padding: 0.5em 1em 0.5em 0 padding: 0.5em 1em 0.5em 0
content: counter(index,decimal-leading-zero) content: counter(index,decimal-leading-zero)
&.playing &.playing
margin-right: 32px
.title .title
color: $highlight color: $highlight
&:before &:before
@ -28,7 +35,7 @@
@extend .icon @extend .icon
position: absolute position: absolute
font-size: 1.25em font-size: 1.25em
right: 10px right: -22px
top: 10px top: 10px
padding: 0.3em padding: 0.3em
content: "playing" content: "playing"

View File

@ -7,7 +7,6 @@ var Events = can.Construct.extend({
this.events.onmessage = function(e) { this.events.onmessage = function(e) {
response = JSON.parse(e.data); response = JSON.parse(e.data);
console.log(response.data);
switch (response.type) { switch (response.type) {
case 'status': case 'status':
status.attr(response.data, true); status.attr(response.data, true);