Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit d6ecf45

Browse files
committed
Fix menu width
fixes #1441
1 parent 6c7889f commit d6ecf45

File tree

3 files changed

+27
-19
lines changed

3 files changed

+27
-19
lines changed

css/obBase.css

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -490,16 +490,16 @@ form {
490490
}
491491

492492
.listingDoesNotShipToYou {
493-
background-color: rgba(37, 37, 37, 0.65);
493+
background-color: rgba(37, 37, 37, 0.65);
494494
/*border-radius: 20px;*/
495-
height: 20px;
495+
height: 20px;
496496
left: 32px;
497-
line-height: 20px;
498-
padding: 8px 4px;
499-
position: absolute;
500-
text-align: center;
501-
top: calc(50% - 32px);
502-
width: 242px;
497+
line-height: 20px;
498+
padding: 8px 4px;
499+
position: absolute;
500+
text-align: center;
501+
top: calc(50% - 32px);
502+
width: 242px;
503503
transition: top .3s cubic-bezier(0, 0, 0.2, 1);
504504
}
505505

@@ -3413,6 +3413,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
34133413
.popMenu-navBar {
34143414
top: 50px;
34153415
right: 10px;
3416+
width: 100%;
34163417
transform: none;
34173418
transition: none;
34183419
}
@@ -3432,10 +3433,15 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
34323433
color: #fff;
34333434
font-size: 13px;
34343435
padding: 10px 0;
3435-
width: 230px;
3436+
width: auto;
3437+
min-width: 230px;
34363438
overflow: hidden;
34373439
transform: translateY(-110%);
3438-
transition: transform 200ms;
3440+
transition: transform 200ms;
3441+
}
3442+
3443+
.popMenu-navBarSubMenu-servers {
3444+
width: 230px;
34393445
}
34403446

34413447
.popMenu-opened .popMenu-navBarSubMenu-pageNav,
@@ -4058,7 +4064,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
40584064
border-style: solid;
40594065
border-width: 10px 10px 0 10px;
40604066
border-color: rgba(37,37,37,.95) transparent transparent transparent;
4061-
position: absolute;
4067+
position: absolute;
40624068
bottom: -10px;
40634069
right: 48px;
40644070
}

js/templates/pageNav.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
7676
<a href="#userPage">
7777
<span class="ion-document-text fontSize12 marginRight2 textOpacity1"></span>
7878
<%= polyglot.t('nav.myPage') %>
79-
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.myPage.toUpperCase() %></span>
79+
<span class="pull-right txt-muted marginLeft10"><%= config.keyShortcutPrefix + config.keyShortcuts.myPage.toUpperCase() %></span>
8080
</a>
8181
<a href="#userPage/<%= ob.guid %>/customize">
8282
<span class="ion-paintbucket fontSize10 textOpacity1"></span>
8383
<%= polyglot.t('nav.customizePage') %>
84-
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.customizePage.toUpperCase() %></span>
84+
<span class="pull-right txt-muted marginLeft10"><%= config.keyShortcutPrefix + config.keyShortcuts.customizePage.toUpperCase() %></span>
8585
</a>
8686
<% if(ob.vendor) { %>
8787
<a href="#userPage/<%= ob.guid %>/listingNew" >
8888
<span class="ion-ios-pricetag fontSize10 marginRight2 textOpacity1"></span>
8989
<%= polyglot.t('nav.createListing') %>
90-
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.create.toUpperCase() %></span>
90+
<span class="pull-right txt-muted marginLeft10"><%= config.keyShortcutPrefix + config.keyShortcuts.create.toUpperCase() %></span>
9191
</a>
9292
<% }else{ %>
9393
<a href="#userPage/<%= ob.guid %>/createStore">
@@ -107,27 +107,27 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
107107
<a href="#transactions/purchases">
108108
<span class="ion-log-out fontSize11 marginRight2 textOpacity1"></span>
109109
<%= polyglot.t('nav.purchases') %>
110-
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.purchases.toUpperCase() %></span>
110+
<span class="pull-right txt-muted marginLeft10"><%= config.keyShortcutPrefix + config.keyShortcuts.purchases.toUpperCase() %></span>
111111
</a>
112112
<% if(ob.vendor) { %>
113113
<a href="#transactions/sales">
114114
<span class="ion-log-in fontSize11 marginRight2 textOpacity1"></span>
115115
<%= polyglot.t('nav.sales') %>
116-
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.sales.toUpperCase() %></span>
116+
<span class="pull-right txt-muted marginLeft10"><%= config.keyShortcutPrefix + config.keyShortcuts.sales.toUpperCase() %></span>
117117
</a>
118118
<% } %>
119119
<% if(ob.moderator) { %>
120120
<a href="#transactions/cases">
121121
<span class="ion-briefcase fontSize11 marginRight2 textOpacity1"></span>
122122
<%= polyglot.t('nav.cases') %>
123-
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.cases.toUpperCase() %></span>
123+
<span class="pull-right txt-muted marginLeft10"><%= config.keyShortcutPrefix + config.keyShortcuts.cases.toUpperCase() %></span>
124124
</a>
125125
<% } %>
126126
<hr/>
127127
<a href="#settings">
128128
<span class="ion-toggle-filled fontSize11 marginRight2 textOpacity1"></span>
129129
<%= polyglot.t('nav.settings') %>
130-
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.settings.toUpperCase() %></span>
130+
<span class="pull-right txt-muted marginLeft10"><%= config.keyShortcutPrefix + config.keyShortcuts.settings.toUpperCase() %></span>
131131
</a>
132132
<hr/>
133133
<a class="js-showAboutModal">
@@ -140,7 +140,7 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
140140
</a>
141141
</div>
142142

143-
<div class="js-serverSubmenu popMenu-navBarSubMenu popMenu-navBarSubMenu-servers" style="right: 222px"></div>
143+
<div class="js-serverSubmenu popMenu-navBarSubMenu popMenu-navBarSubMenu-servers"></div>
144144
</div>
145145

146146
<div class="popMenu popMenu-notifications js-navNotificationsMenu" data-onclose="onNotifMenuClose" data-onopen="onNotifMenuOpen">

js/views/pageNavVw.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,8 @@ module.exports = baseVw.extend({
630630
},
631631

632632
mouseenterServerSubmenuTrigger: function(e) {
633+
this.serverSubmenu.css('right', this.$('.popMenu-navBarSubMenu-pageNav').outerWidth());
634+
633635
this.ServerSubmenuTimeout = setTimeout(() => {
634636
this.serverSubmenu.addClass('server-submenu-opened');
635637
}, 150);

0 commit comments

Comments
 (0)