🐛 Fix separate penpot from organizations (#9853)

This commit is contained in:
Marina López 2026-05-25 15:49:34 +02:00 committed by GitHub
parent b9e13c12f2
commit 40b1757c6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 31 additions and 3 deletions

View File

@ -350,6 +350,8 @@
(when (= default-team-id (:default-team-id organization))
tick-icon)]
[:hr {:role "separator" :class (stl/css :team-separator)}]
[:li {:role "presentation" :class (stl/css :org-section-label)}
(tr "dashboard.section.organizations")]
(for [org-item organizations]
[:> dropdown-menu-item* {:on-click on-org-click
@ -753,10 +755,10 @@
[:div {:class (stl/css :team-name)}
(if default-org?
[:*
[:span {:class (stl/css :org-penpot-icon)}
[:> raw-svg* {:id penpot-logo-icon}]]
[:span {:class (stl/css :my-teams-icon-xxxl)}
[:> raw-svg* {:id penpot-logo-icon-subtle}]]
[:span {:class (stl/css :team-text)}
"Penpot"]]
(tr "dashboard.my-teams")]]
[:*
[:> org-avatar* {:org current-org :size "xxxl"}]
[:span {:class (stl/css :team-text)}

View File

@ -229,6 +229,15 @@
margin: 0;
}
.org-section-label {
@include t.use-typography("headline-small");
color: var(--color-foreground-secondary);
list-style: none;
padding: var(--sp-m) $sz-6 $sz-6;
text-transform: uppercase;
}
.tick-icon {
@extend %button-icon-small;
@ -656,6 +665,17 @@
}
}
.my-teams-icon-xxxl {
height: var(--sp-xxxl);
width: var(--sp-xxxl);
svg {
fill: var(--icon-stroke-color);
width: var(--sp-xxxl);
height: var(--sp-xxxl);
}
}
.sidebar-org-switch {
position: relative;
width: 100%;

View File

@ -383,6 +383,9 @@ msgstr "Create org"
msgid "dashboard.my-teams"
msgstr "My teams"
msgid "dashboard.section.organizations"
msgstr "Organizations"
msgid "dashboard.go-to-admin-console"
msgstr "Go to Admin Console"

View File

@ -392,6 +392,9 @@ msgstr "Crear org"
msgid "dashboard.my-teams"
msgstr "Mis equipos"
msgid "dashboard.section.organizations"
msgstr "Organizaciones"
msgid "dashboard.go-to-admin-console"
msgstr "Ir a la Admin Console"