From 38ddb6cd46637e6dbb91f6c0c1975170ac0fdd9e Mon Sep 17 00:00:00 2001 From: DianaXWiki <139217939+DianaXWiki@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:23:25 +0200 Subject: [PATCH 01/22] Fix profile layout on small screens #1090 --- www/profile/app-profile.less | 2 ++ www/profile/inner.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/profile/app-profile.less b/www/profile/app-profile.less index 924102787..eb7953506 100644 --- a/www/profile/app-profile.less +++ b/www/profile/app-profile.less @@ -23,6 +23,7 @@ #cp-app-profile-header { display: flex; + flex-flow: row wrap; #cp-app-profile-rightside { flex: 1; display: flex; @@ -153,6 +154,7 @@ position: relative; font-size: 16px; margin-bottom: 20px; + margin-top: 1em; .cp-app-profile-description-code { display: none; } diff --git a/www/profile/inner.js b/www/profile/inner.js index 63e2c8d2a..c95ab9b14 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -575,10 +575,10 @@ define([ addLink($rightside); addFriendRequest($rightside); addMuteButton($rightside); - addDescription(APP.$rightside); addPublicKey($rightside); addCopyData($rightside); addViewButton($rightside); + addDescription($rightside); APP.initialized = true; createLeftside(); } From 6fcc3497673fbd1406d4f323d02bea90ad18e4e9 Mon Sep 17 00:00:00 2001 From: DianaXWiki <139217939+DianaXWiki@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:38:20 +0200 Subject: [PATCH 02/22] Center avatar on small screens #1090 --- www/profile/app-profile.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/profile/app-profile.less b/www/profile/app-profile.less index eb7953506..cfd1c6531 100644 --- a/www/profile/app-profile.less +++ b/www/profile/app-profile.less @@ -80,6 +80,12 @@ margin: 5px !important; } } + + @media screen and (max-width: 550px) { + #cp-app-profile-avatar { + margin: auto; + } + } .cp-app-profile-resizer { text-align: center; } From 43d851dd7f6bd1859105a7cc4f277c7f0290e712 Mon Sep 17 00:00:00 2001 From: DianaXWiki <139217939+DianaXWiki@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:27:51 +0200 Subject: [PATCH 03/22] Implement review fixes #1090 --- www/profile/app-profile.less | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/www/profile/app-profile.less b/www/profile/app-profile.less index cfd1c6531..ccf97fbcc 100644 --- a/www/profile/app-profile.less +++ b/www/profile/app-profile.less @@ -24,6 +24,7 @@ #cp-app-profile-header { display: flex; flex-flow: row wrap; + justify-content: center; #cp-app-profile-rightside { flex: 1; display: flex; @@ -32,17 +33,15 @@ } } #cp-app-profile-avatar { - width: 300px; - //height: 350px; margin: 10px; margin-right: 20px; text-align: center; + max-width: 300px; + max-height: 300px; + margin-bottom: 5rem; &> span { display: inline-block; text-align: center; - height: 300px; - width: 300px; - border: 1px solid @cp_profile-border; border-radius: 4px; overflow: hidden; position: relative; @@ -59,6 +58,7 @@ max-width: 100%; max-height: 100%; vertical-align: top; + border-radius: @variables_radius_L; } media-tag { height: 100%; @@ -81,11 +81,6 @@ } } - @media screen and (max-width: 550px) { - #cp-app-profile-avatar { - margin: auto; - } - } .cp-app-profile-resizer { text-align: center; } From 6e902269968f5b0a9cb1298382bd614ec5b6ec8f Mon Sep 17 00:00:00 2001 From: DianaXWiki <139217939+DianaXWiki@users.noreply.github.com> Date: Mon, 17 Feb 2025 12:02:11 +0200 Subject: [PATCH 04/22] Add aria-hidden to icons --- www/profile/app-profile.less | 4 ++-- www/profile/inner.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/www/profile/app-profile.less b/www/profile/app-profile.less index ccf97fbcc..c620a7d41 100644 --- a/www/profile/app-profile.less +++ b/www/profile/app-profile.less @@ -48,9 +48,9 @@ .cp-app-profile-avatar-delete { right: 0; position: absolute; - opacity: 0.7; + opacity: 1; &:hover { - opacity: 1; + opacity: 0.7; } } } diff --git a/www/profile/inner.js b/www/profile/inner.js index c95ab9b14..668df0707 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -116,7 +116,7 @@ define([ $('