From e150ffd9fc4f7b70b32ebc218a3d840d1830ab4e Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 2 Apr 2025 11:22:24 +0200 Subject: [PATCH] style: add ellipsis class to CardSummary --- src/components/ui/CardSummary.vue | 4 ---- src/components/ui/VnDescriptor.vue | 4 ++++ src/pages/Worker/Card/WorkerDescriptor.vue | 2 +- src/pages/Worker/Card/WorkerSummary.vue | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index 7ea91edca..c023e8ec2 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -170,10 +170,6 @@ async function fetch() { flex-grow: 0; flex-shrink: 0; } - &.ellipsis > .value { - text-overflow: ellipsis; - white-space: pre; - } .value { color: var(--vn-text-color); overflow: hidden; diff --git a/src/components/ui/VnDescriptor.vue b/src/components/ui/VnDescriptor.vue index 878adcadc..994233eb0 100644 --- a/src/components/ui/VnDescriptor.vue +++ b/src/components/ui/VnDescriptor.vue @@ -252,6 +252,10 @@ const toModule = computed(() => { content: ':'; } } + &.ellipsis > .value { + text-overflow: ellipsis; + white-space: pre; + } .value { color: var(--vn-text-color); font-size: 14px; diff --git a/src/pages/Worker/Card/WorkerDescriptor.vue b/src/pages/Worker/Card/WorkerDescriptor.vue index 0f09c0a97..9576e7e84 100644 --- a/src/pages/Worker/Card/WorkerDescriptor.vue +++ b/src/pages/Worker/Card/WorkerDescriptor.vue @@ -116,7 +116,7 @@ const handlePhotoUpdated = (evt = false) => {