From 0b2da8a9f04560e561c323903ed64545fc79d53f Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 13 Aug 2024 21:32:02 +0800 Subject: [PATCH] * [ticket #1334, doing, 0.2h] fix line break on copy entity lable. --- lib/zin/wg/entitylabel/css/v1.css | 4 ++-- lib/zin/wg/entitylabel/v1.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/zin/wg/entitylabel/css/v1.css b/lib/zin/wg/entitylabel/css/v1.css index d0ea854034..5f3b61cd1d 100644 --- a/lib/zin/wg/entitylabel/css/v1.css +++ b/lib/zin/wg/entitylabel/css/v1.css @@ -1,6 +1,6 @@ -.entity-label .label {box-shadow: none; border: 1px solid var(--color-gray-300); color: var(--color-gray-700); background: none;} .entity-label {min-width: 0;} -.entity-title {white-space: nowrap; text-overflow: clip; overflow: hidden;} +.entity-label .label {box-shadow: none; border: 1px solid var(--color-gray-300); color: var(--color-gray-700); background: none; display: inline-block; vertical-align: middle;} +.entity-title {white-space: nowrap; text-overflow: clip; overflow: hidden; display: inline-block; line-height: 24px; vertical-align: middle;} .entity-title-1 {font-size: 1rem; color: var(--color-gray-900); font-weight: bold;} .entity-title-2 {font-size: 0.875rem; color: var(--color-gray-900); font-weight: bold;} .entity-title-3 {color: var(--color-gray-800); font-weight: bold;} diff --git a/lib/zin/wg/entitylabel/v1.php b/lib/zin/wg/entitylabel/v1.php index 8912e75381..ada426e0c7 100644 --- a/lib/zin/wg/entitylabel/v1.php +++ b/lib/zin/wg/entitylabel/v1.php @@ -94,10 +94,10 @@ class entityLabel extends wg $entityName = $this->buildEntityName(); return div ( - setClass('entity-label', 'flex', 'items-center', 'gap-x-2', 'overflow-hidden'), + setClass('entity-label space-x-1.5 overflow-hidden'), set($this->getRestProps()), $prefix, - $reverse ? array($entityName, $entityID) : array($entityID, $entityName), + $reverse ? array($entityName, ' ', $entityID) : array($entityID, ' ', $entityName), $suffix ); }