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; -}