From b3c01545abc9e27a3a710b1a08a2178cde882f31 Mon Sep 17 00:00:00 2001 From: Timi Date: Sat, 12 Sep 2026 15:30:01 +0800 Subject: [PATCH] fix avatar radius --- src/assets/styles/global.less | 2 +- src/components/CustomerCell.vue | 7 -- src/pages/customer/CustomerList.vue | 123 ++++++++++++++++++---------- 3 files changed, 79 insertions(+), 53 deletions(-) diff --git a/src/assets/styles/global.less b/src/assets/styles/global.less index a91234f..8557e1a 100644 --- a/src/assets/styles/global.less +++ b/src/assets/styles/global.less @@ -119,7 +119,7 @@ html.theme-dark body { .avatar { flex: none; display: block; - border-radius: .875rem; + border-radius: .875rem !important; &.fallback { color: #2563EB; diff --git a/src/components/CustomerCell.vue b/src/components/CustomerCell.vue index 5ac2c40..606d086 100644 --- a/src/components/CustomerCell.vue +++ b/src/components/CustomerCell.vue @@ -93,13 +93,6 @@ const photoURL = computed(() => customer.value ? getCustomerPhotoURL(customer.va } } -:deep(.avatar .t-image__img) { - width: 100%; - height: 100%; - object-fit: cover; - border-radius: inherit; -} - :global(html.theme-dark) { .customer-cell { .code { diff --git a/src/pages/customer/CustomerList.vue b/src/pages/customer/CustomerList.vue index b8010e2..e231a64 100644 --- a/src/pages/customer/CustomerList.vue +++ b/src/pages/customer/CustomerList.vue @@ -54,58 +54,65 @@ /> 清空 - - - - - - - + + - - - - + @click="openStartTime" + /> + + + + -
-
+ + + + + + + + +
+
+