THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

two-column-mode: Polish for my issues page

next
Suwon Chae 1 year ago
parent
commit
393a2714c6
2 changed files with 12 additions and 3 deletions
  1. +1
    -1
      app/views/common/usermenu.scala.html
  2. +11
    -2
      public/javascripts/service/yona.twoColumnMode.js

+ 1
- 1
app/views/common/usermenu.scala.html View File

@ -91,7 +91,7 @@
</li>
<li class="divider"></li>
}
<li class="gnb-usermenu-dropdown" id="sidebar-open-btn">
<li class="gnb-usermenu-dropdown sidebar-open-btn" id="sidebar-open-btn">
<a href="javascript:void(0);" class="gnb-dropdown-toggle" data-toggle="tooltip" data-placement="bottom" title="@Messages("user.menu"), @Messages("title.shortcut") (F)">
<span class="avatar-wrap smaller">
<img src="@currentUser.avatarUrl(32)" />

+ 11
- 2
public/javascripts/service/yona.twoColumnMode.js View File

@ -15,7 +15,7 @@ function _initTwoColumnMode(){
var $projectPageWrap = $('.project-page-wrap');
if (mainWidth === "") {
mainWidth = $projectPageWrap.css("width");
mainWidth = $projectPageWrap.css("width") || $(".page-wrap").css("width");
}
if( isLeftMenuHide ) {
@ -105,7 +105,11 @@ function _initTwoColumnMode(){
$projectPageWrap.css("margin", "20px 10px 0").css("width", "55%");
$(".project-header-wrap").css("margin", "0 10px");
$(".project-menu-inner").css("margin", "0 10px")
$(".project-menu-inner").css("margin", "0 10px");
$(".gnb-inner").css("margin", "0 10px");
$(".page-wrap").css("margin", "0 10px").css("width", "55%");
$(".gnb-usermenu").css("float", "none");
$("#mySidenav").css("right", "50%");
}
function revokeMarginOfMainPage() {
@ -114,5 +118,10 @@ function _initTwoColumnMode(){
$projectPageWrap.css("margin", "20px auto 0").css("width", mainWidth);
$(".project-header-wrap").css("margin", "0 auto");
$(".project-menu-inner").css("margin", "0 auto");
$(".gnb-inner").css("margin", "0 auto");
$(".page-wrap").css("margin", "0 auto").css("width", mainWidth);
$(".gnb-usermenu").css("float", "right");
$("#mySidenav").css("right", "0");
}
}

Loading…
Cancel
Save