* [ticket #1334, doing, 0.2h] fix line break on copy entity lable.

This commit is contained in:
sunhao
2024-08-14 09:17:14 +08:00
committed by 刘刚
parent 0de100a32f
commit 0b2da8a9f0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;}
+2 -2
View File
@@ -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
);
}