Skip to content

Commit

Permalink
OSX UI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafajaques committed Jun 6, 2016
1 parent 1aa97ba commit 9e07e13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!-- Sidebar -->
<div id="sidebar">
<!-- Menu -->
<ul style="margin-top:25px;">
<ul>
<li data-event="sidebar-run"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> <span data-string="Run code"></span> <span id="run-version"></span></li>
<li data-event="sidebar-clear"><span class="glyphicon glyphicon-erase" aria-hidden="true"></span> <span data-string="Clear"></span></li>
<li data-event="sidebar-import"><span class="glyphicon glyphicon-open-file" aria-hidden="true"></span> <span data-string="Import from file"></span></li>
Expand Down
5 changes: 5 additions & 0 deletions app/js/main.functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ function renderApp(refresh) {
container: 'body',
delay: { show: 400 }
});

// Padding sidebar buttons to not be under traffic lights
if (conf.get('system.os') === 'osx') {
$('#sidebar ul').css('margin-top', '22px');
}
}

// Populate language list
Expand Down

0 comments on commit 9e07e13

Please sign in to comment.