From 43481ef39045ac9d25be3e60797cf92f85d36fcb Mon Sep 17 00:00:00 2001 From: Sajid Anwar Date: Thu, 4 Jun 2015 00:19:43 -0700 Subject: [PATCH] Fix queue container display error on Mac OS X 10.9 (fixes #323) --- radiant-player-mac/AppDelegate.m | 3 +++ radiant-player-mac/css/common.css | 17 +++++++++++++++++ radiant-player-mac/css/spotify-black.css | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 radiant-player-mac/css/common.css diff --git a/radiant-player-mac/AppDelegate.m b/radiant-player-mac/AppDelegate.m index 72c56e0d..1237c3bd 100644 --- a/radiant-player-mac/AppDelegate.m +++ b/radiant-player-mac/AppDelegate.m @@ -936,6 +936,9 @@ - (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame [self evaluateJavaScriptFile:@"styles"]; + // Apply common styles. + [self applyCSSFile:@"common"]; + // Apply the navigation styles. [self applyCSSFile:@"navigation"]; [self evaluateJavaScriptFile:@"navigation"]; diff --git a/radiant-player-mac/css/common.css b/radiant-player-mac/css/common.css new file mode 100644 index 00000000..6e9c7c30 --- /dev/null +++ b/radiant-player-mac/css/common.css @@ -0,0 +1,17 @@ +/* +* css/common.css +* +* Style fixes common to all styles. +* +* Created by Sajid Anwar. +* +* Subject to terms and conditions in LICENSE.md. +* +*/ + +/* Fix the queue display on OS X 10.9 */ +#queue-overlay { + top: 128px; + height: auto; + margin-top: 0; +} \ No newline at end of file diff --git a/radiant-player-mac/css/spotify-black.css b/radiant-player-mac/css/spotify-black.css index fd3dbdc9..0db5101c 100644 --- a/radiant-player-mac/css/spotify-black.css +++ b/radiant-player-mac/css/spotify-black.css @@ -89,7 +89,7 @@ a, .simple-dialog a { .material-container, .material-playlist-container, .songlist-container, -#queue-container { +#queue-overlay { background-color: rgba(18, 19, 20, 0.98); box-shadow: none; }