From 91eb573df3b91fcc5799618fddf74c5c15f75469 Mon Sep 17 00:00:00 2001 From: Professional Date: Sun, 25 May 2025 01:44:57 +0700 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D1=84=D0=B8=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ProfileView.vue | 71 +++++++++++++++++++++++++++++---------- 1 file changed, 54 insertions(+), 17 deletions(-) diff --git a/src/views/ProfileView.vue b/src/views/ProfileView.vue index a3b0ca8..933505e 100644 --- a/src/views/ProfileView.vue +++ b/src/views/ProfileView.vue @@ -26,6 +26,17 @@
+ + +
@@ -59,19 +70,6 @@

{{ profileData.email }}

- -
- -
@@ -1392,6 +1390,47 @@ onUnmounted(() => { padding: 1.25rem; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); + position: relative; /* Добавлено для позиционирования кнопки редактирования */ +} + +/* Стили для кнопки редактирования в правом верхнем углу */ +.edit-profile-btn { + position: absolute; + top: 1rem; + right: 1rem; + width: 36px; + height: 36px; + border-radius: 50%; + background: linear-gradient(45deg, #667eea, #764ba2); + border: none; + color: white; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + z-index: 5; + transition: all 0.3s ease; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); +} + +.edit-profile-btn i { + font-size: 1rem; +} + +.edit-profile-btn:hover { + transform: translateY(-2px); + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); +} + +.edit-profile-btn:active { + transform: translateY(0px); + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); +} + +.edit-profile-btn:disabled { + opacity: 0.6; + cursor: not-allowed; + transform: none; } .profile-header-content { @@ -1506,10 +1545,8 @@ onUnmounted(() => { color: #6c757d; margin: 0; line-height: 1.2; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - width: 100%; /* заставляем почту занимать всю доступную ширину */ + width: 100%; /* оставляем эту ширину, чтобы почта занимала всю доступную ширину */ + word-break: break-word; /* добавляем перенос слов, если почта очень длинная */ } .user-badges {