0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

🐛 Fix component title text

This commit is contained in:
Eva 2024-01-16 15:00:16 +01:00 committed by Alonso Torres
parent 0a8bbe0b77
commit 01ad26c084
2 changed files with 13 additions and 1 deletions

View file

@ -488,7 +488,11 @@
:collapsed (not open?)
:on-collapsed toggle-content
: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?
[:div {:class (stl/css :element-content)}

View file

@ -34,6 +34,14 @@
}
}
.copy-text {
@include titleTipography;
height: 100%;
display: flex;
align-items: center;
color: var(--title-foreground-color);
}
.component-icon {
@include flexCenter;
height: $s-24;