mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
Fix mobile member menu width
This commit is contained in:
parent
88920bc9fe
commit
cabcdbdb66
2 changed files with 13 additions and 6 deletions
|
|
@ -1,5 +1,12 @@
|
|||
$(function() {
|
||||
$('.layout_menu>ul>li:first-child .layout_dropdown-content, .layout_menu>ul>li:first-child .layout_dropdown-content a').css('width', $('.layout_menu>ul>li:first-child').width()).css('min-width', $('.layout_menu>ul>li:first-child').width());
|
||||
if($('.layout_menu>ul>li:first-child').width() > 50) {
|
||||
$('.layout_menu>ul>li:first-child .layout_dropdown-content, .layout_menu>ul>li:first-child .layout_dropdown-content a').css('width', $('.layout_menu>ul>li:first-child').width()).css('min-width', $('.layout_menu>ul>li:first-child').width());
|
||||
}
|
||||
$( window ).resize(function() {
|
||||
if($('.layout_menu>ul>li:first-child').width() > 50) {
|
||||
$('.layout_menu>ul>li:first-child .layout_dropdown-content, .layout_menu>ul>li:first-child .layout_dropdown-content a').css('width', $('.layout_menu>ul>li:first-child').width()).css('min-width', $('.layout_menu>ul>li:first-child').width());
|
||||
}
|
||||
});
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue