mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 08:01:38 +02:00
Merge pull request #5625 from penpot/eva-fix-long-token-names
This commit is contained in:
commit
1395629e5a
3 changed files with 17 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue