From 7ab385cf4ab1932f3e00a0263f2f73ac97a0b267 Mon Sep 17 00:00:00 2001 From: glpshchn <464976@niuitmo.ru> Date: Fri, 5 Dec 2025 01:15:45 +0300 Subject: [PATCH] Update files --- frontend/src/components/FollowListModal.css | 47 +++++++++++++-------- frontend/src/components/FollowListModal.jsx | 4 +- 2 files changed, 32 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/FollowListModal.css b/frontend/src/components/FollowListModal.css index acde38f..37c67a4 100644 --- a/frontend/src/components/FollowListModal.css +++ b/frontend/src/components/FollowListModal.css @@ -103,19 +103,28 @@ } .user-item-wrapper { - padding: 2px 8px; + padding: 4px 12px; display: flex; align-items: center; - gap: 6px; + gap: 8px; + border-bottom: 1px solid rgba(0, 0, 0, 0.03); +} + +.user-item-wrapper:last-child { + border-bottom: none; +} + +[data-theme="dark"] .user-item-wrapper { + border-bottom-color: rgba(255, 255, 255, 0.03); } .user-item { display: flex; align-items: flex-start; - gap: 6px; + gap: 8px; cursor: pointer; transition: background 0.2s; - padding: 3px; + padding: 4px; border-radius: 4px; position: relative; flex: 1; @@ -126,12 +135,12 @@ } .follow-list-modal .user-avatar { - width: 20px !important; - height: 20px !important; - min-width: 20px !important; - min-height: 20px !important; - max-width: 20px !important; - max-height: 20px !important; + width: 36px !important; + height: 36px !important; + min-width: 36px !important; + min-height: 36px !important; + max-width: 36px !important; + max-height: 36px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; @@ -142,25 +151,25 @@ min-width: 0; display: flex; flex-direction: column; - gap: 0.5px; + gap: 1px; text-align: left; align-items: flex-start; } .follow-list-modal .user-name { - font-size: 10px !important; + font-size: 13px !important; font-weight: 600; color: var(--text-primary); - line-height: 1.2; + line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .follow-list-modal .user-username { - font-size: 12px !important; + font-size: 14px !important; color: var(--text-secondary); - line-height: 1.2; + line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -168,8 +177,12 @@ /* Follow Button Icon */ .follow-btn-icon { - width: 26px; - height: 26px; + width: 36px !important; + height: 36px !important; + min-width: 36px !important; + min-height: 36px !important; + max-width: 36px !important; + max-height: 36px !important; border-radius: 50%; background: var(--bg-primary); color: var(--text-primary); diff --git a/frontend/src/components/FollowListModal.jsx b/frontend/src/components/FollowListModal.jsx index 2d80d82..7c526c7 100644 --- a/frontend/src/components/FollowListModal.jsx +++ b/frontend/src/components/FollowListModal.jsx @@ -112,9 +112,9 @@ export default function FollowListModal({ users, title, onClose, currentUser }) onClick={(e) => handleFollowToggle(user._id, e)} > {isFollowing ? ( - + ) : ( - + )} )}