mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07:59 +01:00
Fixed dropdown layout issue
Fixed show songs playing wrong track
This commit is contained in:
parent
010836e69d
commit
675ba17901
5 changed files with 20 additions and 5 deletions
|
@ -64,7 +64,7 @@
|
||||||
$tracks = [];
|
$tracks = [];
|
||||||
$ids = [];
|
$ids = [];
|
||||||
|
|
||||||
foreach ($query->get() as $track) {
|
foreach ($query->get(['tracks.*']) as $track) {
|
||||||
$tracks[] = Track::mapPublicTrackSummary($track);
|
$tracks[] = Track::mapPublicTrackSummary($track);
|
||||||
$ids[] = $track->id;
|
$ids[] = $track->id;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,6 @@
|
||||||
return Response::json(Track::mapPrivateTrackShow($track), 200);
|
return Response::json(Track::mapPrivateTrackShow($track), 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function applyFilters($query) {
|
private function applyFilters($query) {
|
||||||
if (Input::has('order')) {
|
if (Input::has('order')) {
|
||||||
$order = \Input::get('order');
|
$order = \Input::get('order');
|
||||||
|
@ -127,7 +126,6 @@
|
||||||
$join->on('tracks.id', '=', 'show_song_track.track_id');
|
$join->on('tracks.id', '=', 'show_song_track.track_id');
|
||||||
});
|
});
|
||||||
$query->whereIn('show_song_track.show_song_id', Input::get('songs'));
|
$query->whereIn('show_song_track.show_song_id', Input::get('songs'));
|
||||||
$query->select('tracks.*');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<a href="/">pony.fm</a>
|
<a href="/">pony.fm <small>(beta)</small></a>
|
||||||
<div class="now-playing">
|
<div class="now-playing">
|
||||||
@if (Auth::check())
|
@if (Auth::check())
|
||||||
<div class="user-details dropdown">
|
<div class="user-details dropdown">
|
||||||
|
|
|
@ -3,6 +3,12 @@ window.handleResize = () ->
|
||||||
$siteBody = $ '.site-body'
|
$siteBody = $ '.site-body'
|
||||||
$siteBody.height windowHeight - $('header').height()
|
$siteBody.height windowHeight - $('header').height()
|
||||||
|
|
||||||
|
$('.dropdown-menu').each () ->
|
||||||
|
$this = $ this
|
||||||
|
newMaxHeight = windowHeight - $this.parent().offset().top - $this.parent().height() - 5
|
||||||
|
$this.css
|
||||||
|
'max-height': newMaxHeight
|
||||||
|
|
||||||
$('.stretch-to-bottom').each () ->
|
$('.stretch-to-bottom').each () ->
|
||||||
$this = $ this
|
$this = $ this
|
||||||
newHeight = windowHeight - $this.offset().top
|
newHeight = windowHeight - $this.offset().top
|
||||||
|
|
|
@ -217,6 +217,7 @@ html body {
|
||||||
html .dropdown-menu {
|
html .dropdown-menu {
|
||||||
.border-radius(0px);
|
.border-radius(0px);
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
> li {
|
> li {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
|
|
@ -18,7 +18,7 @@ header {
|
||||||
float: left;
|
float: left;
|
||||||
width: (@pfm-sidebar-size - 25);
|
width: (@pfm-sidebar-size - 25);
|
||||||
height: 64px;
|
height: 64px;
|
||||||
line-height: 52px;
|
line-height: 42px;
|
||||||
background: #84528A;
|
background: #84528A;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 24pt;
|
font-size: 24pt;
|
||||||
|
@ -27,12 +27,22 @@ header {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 600;
|
z-index: 600;
|
||||||
font-family: 'Josefin Sans', sans-serif;
|
font-family: 'Josefin Sans', sans-serif;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: darken(#84528A, 25%);
|
background: darken(#84528A, 25%);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-family: 'Arial';
|
||||||
|
font-size: 8pt;
|
||||||
|
color: #eee;
|
||||||
|
position: absolute;
|
||||||
|
top: 30px;
|
||||||
|
left: 33px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-details {
|
.user-details {
|
||||||
|
|
Loading…
Reference in a new issue