0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

🐛 Fix problem with rtl

This commit is contained in:
alonso.torres 2024-04-02 11:31:13 +02:00
parent a4776cf27f
commit b258b05fb2
2 changed files with 10 additions and 4 deletions

View file

@ -616,9 +616,10 @@
[:div {:class (stl/css :name-wrapper)}
[:div {:class (stl/css :component-name)}
(if multi
(tr "settings.multiple")
(cfh/last-path shape-name))]
[:span {:class (stl/css :component-name-inside)}
(if multi
(tr "settings.multiple")
(cfh/last-path shape-name))]]
(when (and can-swap? (not multi))
[:div {:class (stl/css :component-parent-name)}

View file

@ -56,7 +56,6 @@
padding-right: 0.5rem;
.component-name-wrapper {
width: 100%;
border-radius: $br-8;
}
}
@ -93,6 +92,7 @@
min-height: $s-32;
padding: $s-8 0 $s-8 $s-2;
border-radius: $br-8 0 0 $br-8;
overflow: hidden;
}
.component-name {
@ -103,6 +103,11 @@
min-height: $s-16;
}
.component-name-inside {
direction: ltr;
unicode-bidi: bidi-override;
}
.component-parent-name {
@include bodySmallTypography;
@include textEllipsis;