mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 12:28:54 -05:00
🐛 Fix problem with rtl
This commit is contained in:
parent
a4776cf27f
commit
b258b05fb2
2 changed files with 10 additions and 4 deletions
|
@ -616,9 +616,10 @@
|
||||||
|
|
||||||
[:div {:class (stl/css :name-wrapper)}
|
[:div {:class (stl/css :name-wrapper)}
|
||||||
[:div {:class (stl/css :component-name)}
|
[:div {:class (stl/css :component-name)}
|
||||||
(if multi
|
[:span {:class (stl/css :component-name-inside)}
|
||||||
(tr "settings.multiple")
|
(if multi
|
||||||
(cfh/last-path shape-name))]
|
(tr "settings.multiple")
|
||||||
|
(cfh/last-path shape-name))]]
|
||||||
|
|
||||||
(when (and can-swap? (not multi))
|
(when (and can-swap? (not multi))
|
||||||
[:div {:class (stl/css :component-parent-name)}
|
[:div {:class (stl/css :component-parent-name)}
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
padding-right: 0.5rem;
|
padding-right: 0.5rem;
|
||||||
.component-name-wrapper {
|
.component-name-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
border-radius: $br-8;
|
border-radius: $br-8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,6 +92,7 @@
|
||||||
min-height: $s-32;
|
min-height: $s-32;
|
||||||
padding: $s-8 0 $s-8 $s-2;
|
padding: $s-8 0 $s-8 $s-2;
|
||||||
border-radius: $br-8 0 0 $br-8;
|
border-radius: $br-8 0 0 $br-8;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.component-name {
|
.component-name {
|
||||||
|
@ -103,6 +103,11 @@
|
||||||
min-height: $s-16;
|
min-height: $s-16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.component-name-inside {
|
||||||
|
direction: ltr;
|
||||||
|
unicode-bidi: bidi-override;
|
||||||
|
}
|
||||||
|
|
||||||
.component-parent-name {
|
.component-parent-name {
|
||||||
@include bodySmallTypography;
|
@include bodySmallTypography;
|
||||||
@include textEllipsis;
|
@include textEllipsis;
|
||||||
|
|
Loading…
Add table
Reference in a new issue