Merge pull request #1782 from ultimatemember/fix/profile_photo_menu

Profile photo menu position on mobile
This commit is contained in:
Mykyta Synelnikov
2026-02-09 10:52:40 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -60,7 +60,7 @@ UM.dropdown = {
// profile photo // profile photo
if ( $element.is('.um-profile-photo') ) { if ( $element.is('.um-profile-photo') ) {
var $imgBox = $element.find('.um-profile-photo-img'); 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; top_p = $element.outerHeight() - $imgBox.outerHeight() / 4;
} else { } else {
left_p = ($imgBox.outerWidth() - menu_width) / 2; left_p = ($imgBox.outerWidth() - menu_width) / 2;
@@ -71,7 +71,7 @@ UM.dropdown = {
// cover photo // cover photo
if ( $element.is('.um-cover') ) { if ( $element.is('.um-cover') ) {
var $imgBox = $element.find('.um-cover-e'); 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; left_p = ($imgBox.outerWidth() - menu_width) / 2;
top_p = $imgBox.outerHeight() / 2 + 24; top_p = $imgBox.outerHeight() / 2 + 24;
} else { } else {
+1 -1
View File
File diff suppressed because one or more lines are too long