mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fixed the profile photo drop-down menu position for very small screens.
This commit is contained in:
@@ -60,7 +60,7 @@ UM.dropdown = {
|
||||
// profile photo
|
||||
if ( $element.is('.um-profile-photo') ) {
|
||||
var $imgBox = $element.find('.um-profile-photo-img');
|
||||
if ( $element.closest('div.uimob500').length ) {
|
||||
if ( $element.closest('div.uimob340,div.uimob500').length ) {
|
||||
top_p = $element.outerHeight() - $imgBox.outerHeight() / 4;
|
||||
} else {
|
||||
left_p = ($imgBox.outerWidth() - menu_width) / 2;
|
||||
@@ -71,7 +71,7 @@ UM.dropdown = {
|
||||
// cover photo
|
||||
if ( $element.is('.um-cover') ) {
|
||||
var $imgBox = $element.find('.um-cover-e');
|
||||
if ( $element.closest('div.uimob500').length ) {
|
||||
if ( $element.closest('div.uimob340,div.uimob500').length ) {
|
||||
left_p = ($imgBox.outerWidth() - menu_width) / 2;
|
||||
top_p = $imgBox.outerHeight() / 2 + 24;
|
||||
} else {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user