Skip to content
Permalink
Browse files

fix top nav shrinking

  • Loading branch information...
Manuel-777 committed Feb 10, 2019
1 parent 5c5f7db commit aca0dfed10dea6cddf7a8862aad576f98835d2ff
Showing with 8 additions and 3 deletions.
  1. +1 −0 window_main/index.css
  2. +7 −3 window_main/renderer.js
@@ -346,6 +346,7 @@ span.top_nav_item_text {
text-align: center;
color: #FAE5D2;
background-position-y: 64px;
background-size: 100% 100%;
background-repeat: no-repeat;
background-image: url(../images/nav_hover.png);
-webkit-transition: all .2s ease-in-out;
@@ -725,8 +725,10 @@ function force_open_about() {
}

let top_compact = false;
$(document).ready(function() {
$(window).on('resize', () => {
let resizeTimer;
window.addEventListener('resize', (event) => {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(() => {
if ($('.top_nav_icons').width() < 500) {
if (!top_compact) {
$('span.top_nav_item_text').css("opacity", 0);
@@ -745,8 +747,10 @@ $(document).ready(function() {
top_compact = false;
}
}
});
}, 100);
});

$(document).ready(function() {
//document.getElementById("rememberme").checked = false;
$(".signup_link").click(function() {
shell.openExternal('https://mtgatool.com/signup/');

0 comments on commit aca0dfe

Please sign in to comment.
You can’t perform that action at this time.