fix:Prevent song information text from overlapping the 'Play' button.

Fixes #155.
This commit is contained in:
jcass 2016-02-04 17:38:11 +02:00
parent 18b4a1471c
commit 920b60384c
4 changed files with 16 additions and 10 deletions

View File

@ -481,7 +481,12 @@ a {
#infocover {
height: 50px;
width: 50px;
position: absolute;
}
.playicon {
width: 10%;
float: right;
text-align: right;
}
#btplay {
@ -490,17 +495,16 @@ a {
.songinfo {
height: 100%;
width: 90%;
float: left;
}
.songinfo-text {
text-align: left;
line-height: 22px;
display:inline-block;
padding: 6px;
color: white;
position: absolute;
padding-left: 55px;
padding-right: 55px;
overflow: hidden;
padding: 3px;
}
#nowPlayingpane{

View File

@ -438,14 +438,14 @@
<div data-role="footer" data-tap-toggle="false" data-position="fixed" id="normalFooter">
<div class="footerControls">
<div id="songinfo" style="float: left">
<a href="#"><div><img id="infocover" src="images/default_cover.png"/></div></a>
<div class="songinfo" id="songinfo">
<a href="#"><div style="float: left"><img id="infocover" src="images/default_cover.png"/></div></a>
<div class="songinfo-text">
<div id="infoname"></div>
<div id="infoartist"></div>
</div>
</div>
<div style="float: right;">
<div class="playicon">
<a href="#" onclick="doPlay(); return false"><span id="btplay" title="Play"><i class="fa fa-play"></i></span></a>
</div>
</div>

View File

@ -24,7 +24,9 @@ function resetSong() {
function resizeMb() {
$("#infoname").html(songdata.track.name);
$("#infoname").truncate();
$("#infoartist").html(artiststext);
$("#infoartist").truncate();
if ($(window).width() <= 960) {
// $('#playlisttracksdiv').hide();

View File

@ -1,6 +1,6 @@
CACHE MANIFEST
# 2016-02-4:v1
# 2016-02-4:v2
NETWORK:
*