Merge pull request #5625 from penpot/eva-fix-long-token-names

This commit is contained in:
Andrey Antukh 2025-01-20 16:38:24 +01:00 committed by GitHub
commit 1395629e5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 15 deletions

View file

@ -21,7 +21,7 @@
color (when (seq (ctob/find-token-value-references value))
(wtt/resolved-value-hex theme-token))
contains-path? (str/includes? name ".")
splitted-name (cfh/split-string-half name)
splitted-name (cfh/split-by-last-period name)
color (or color (wtt/resolved-value-hex token))
on-click
(mf/use-callback

View file

@ -62,22 +62,22 @@
.divided-name-wrapper {
height: $s-16;
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
}
.first-name-wrapper {
display: inline-block;
max-width: 50%;
overflow: hidden;
white-space: pre;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}
.last-name-wrapper {
display: inline-block;
max-width: 50%;
overflow: hidden;
white-space: pre;
direction: rtl;
flex-shrink: 0;
margin-left: 4px;
}
.token-pill-applied {