mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 18:48:37 -05:00
🐛 Fix component title text
This commit is contained in:
parent
0a8bbe0b77
commit
01ad26c084
2 changed files with 13 additions and 1 deletions
|
@ -488,7 +488,11 @@
|
||||||
:collapsed (not open?)
|
:collapsed (not open?)
|
||||||
:on-collapsed toggle-content
|
:on-collapsed toggle-content
|
||||||
:title (tr "workspace.options.component")
|
:title (tr "workspace.options.component")
|
||||||
:class (stl/css :title-spacing-component)}])]
|
:class (stl/css :title-spacing-component)}
|
||||||
|
[:span {:class (stl/css :copy-text)}
|
||||||
|
(if main-instance?
|
||||||
|
(tr "workspace.options.component.main")
|
||||||
|
(tr "workspace.options.component.copy"))]])]
|
||||||
|
|
||||||
(when open?
|
(when open?
|
||||||
[:div {:class (stl/css :element-content)}
|
[:div {:class (stl/css :element-content)}
|
||||||
|
|
|
@ -34,6 +34,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.copy-text {
|
||||||
|
@include titleTipography;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: var(--title-foreground-color);
|
||||||
|
}
|
||||||
|
|
||||||
.component-icon {
|
.component-icon {
|
||||||
@include flexCenter;
|
@include flexCenter;
|
||||||
height: $s-24;
|
height: $s-24;
|
||||||
|
|
Loading…
Add table
Reference in a new issue