From 94cf0f9f63faa3efe9b90e11eb0655289808b290 Mon Sep 17 00:00:00 2001 From: Phoenix <64720302+Concur-max@users.noreply.github.com> Date: Thu, 15 May 2025 18:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0ContactModal.vue=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0NRadio=E5=92=8CNVirtualList?= =?UTF-8?q?=E6=94=AF=E6=8C=81=EF=BC=8C=E4=BC=98=E5=8C=96=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E4=BA=BA=E9=80=89=E6=8B=A9=E9=80=BB=E8=BE=91=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=90=9C=E7=B4=A2=E8=BF=87=E6=BB=A4=E5=99=A8=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E8=BF=9B=E7=94=A8=E6=88=B7=E7=95=8C=E9=9D=A2=E5=92=8C?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 2 + src/components/user/ContactModal.vue | 327 ++++++++++++--------------- 2 files changed, 141 insertions(+), 188 deletions(-) diff --git a/components.d.ts b/components.d.ts index 58e27a4..3a98618 100644 --- a/components.d.ts +++ b/components.d.ts @@ -59,7 +59,9 @@ declare module 'vue' { NoticeTab: typeof import('./src/components/group/manage/NoticeTab.vue')['default'] NotificationApi: typeof import('./src/components/common/NotificationApi.vue')['default'] NProgress: typeof import('naive-ui')['NProgress'] + NRadio: typeof import('naive-ui')['NRadio'] NTag: typeof import('naive-ui')['NTag'] + NVirtualList: typeof import('naive-ui')['NVirtualList'] RevokeMessage: typeof import('./src/components/talk/message/RevokeMessage.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/src/components/user/ContactModal.vue b/src/components/user/ContactModal.vue index ad8d1a5..e2595ef 100644 --- a/src/components/user/ContactModal.vue +++ b/src/components/user/ContactModal.vue @@ -1,12 +1,12 @@ @@ -257,74 +255,27 @@ onLoad() font-weight: unset; } -.launch-box { - height: 410px; - width: 100%; +.flex-center { + display: flex; + justify-content: center; + align-items: center; +} + +.text-ellipsis { + white-space: nowrap; overflow: hidden; - - .sub-header { - height: 50px; - padding: 10px 15px; - display: flex; - justify-content: space-between; - align-items: center; - } - - .friend-items { - height: 100%; - overflow-y: auto; - padding: 0 15px; - - .friend-item { - height: 40px; - box-sizing: border-box; - display: flex; - flex-direction: row; - margin: 5px 0; - - > div { - display: flex; - align-items: center; - justify-content: center; - } - - .avatar { - width: 30px; - justify-content: flex-start; - } - - .content { - flex: 1 auto; - padding-left: 8px; - overflow: hidden; - font-size: 14px; - font-weight: 400; - justify-content: flex-start; - &:hover { - color: #409eff; - } - } - - .checkbox { - flex-shrink: 0; - width: 30px; - justify-content: flex-end; - } - } - } + text-overflow: ellipsis; + max-width: 180px; } .badge { &.group { color: #3370ff !important; background-color: #e1eaff !important; + font-size: 12px; + padding: 0 5px; + border-radius: 4px; } margin: 0 3px; } - -.footer { - display: flex; - align-items: center; - justify-content: space-between; -}