🎉 Add feedback link to workspace

This commit is contained in:
elhombretecla 2020-12-10 09:50:56 +01:00 committed by Alonso Torres
parent 7b458daa98
commit 4a2db204f1
5 changed files with 24 additions and 8 deletions

View file

@ -2377,13 +2377,22 @@
"es" : "Desactivar alineamiento dinámico" "es" : "Desactivar alineamiento dinámico"
} }
}, },
"workspace.header.menu.feedback" : {
"used-in" : [ "src/app/main/ui/workspace/header.cljs:228" ],
"translations" : {
"en" : "Give feedback",
"fr" : "Donnez votre avis",
"ru" : "Дать обратную связь",
"es" : "Danos tu opinión"
}
},
"workspace.header.menu.disable-snap-grid" : { "workspace.header.menu.disable-snap-grid" : {
"used-in" : [ "src/app/main/ui/workspace/header.cljs:186" ], "used-in" : [ "src/app/main/ui/workspace/header.cljs:186" ],
"translations" : { "translations" : {
"en" : "Disable snap to grid", "en" : "Give feedback",
"fr" : "Désactiver l'alignement sur la grille", "fr" : "Désactiver l'alignement sur la grille",
"ru" : "Отключить привязку к сетке", "ru" : "Отключить привязку к сетке",
"es" : "Desactivar alinear a la rejilla" "es" : "Danos tu opinion"
} }
}, },
"workspace.header.menu.enable-dynamic-alignment" : { "workspace.header.menu.enable-dynamic-alignment" : {

View file

@ -370,8 +370,7 @@
display: flex; display: flex;
flex-grow: 1; flex-grow: 1;
span, span {
a {
@include text-ellipsis; @include text-ellipsis;
color: $color-black; color: $color-black;
margin: 10px 5px; margin: 10px 5px;
@ -420,11 +419,11 @@
} }
} }
span.primary-badge { .primary-badge {
border: 1px solid $color-primary; border: 1px solid $color-primary;
border-radius: 2px; border-radius: 2px;
font-size: $fs9 !important; font-size: $fs9 !important;
font-weight: bold; font-weight: bold;
color: $color-primary !important; color: $color-primary !important;
padding: 2px 2px; padding: 2px 4px;
} }

View file

@ -171,6 +171,10 @@
&:hover { &:hover {
background-color: $color-primary-lighter; background-color: $color-primary-lighter;
} }
&.feedback {
border-top: 1px solid $color-gray-10;
}
} }
} }

View file

@ -454,9 +454,9 @@
[:li {:on-click (partial on-click (da/logout))} [:li {:on-click (partial on-click (da/logout))}
[:span.icon i/exit] [:span.icon i/exit]
[:span.text (t locale "labels.logout")]] [:span.text (t locale "labels.logout")]]
[:li.feedback [:li.feedback {:on-click #(.open js/window "https://github.com/penpot/penpot/discussions" "_blank")}
[:span.icon i/msg-info] [:span.icon i/msg-info]
[:a.text {:href "https://github.com/penpot/penpot/discussions" :target "_blank"} (t locale "labels.feedback")] [:span.text (t locale "labels.feedback")]
[:span.primary-badge "ALPHA"]]]]] [:span.primary-badge "ALPHA"]]]]]
(when (and team profile) (when (and team profile)

View file

@ -223,6 +223,10 @@
[:span (tr "dashboard.remove-shared")]] [:span (tr "dashboard.remove-shared")]]
[:li {:on-click on-add-shared} [:li {:on-click on-add-shared}
[:span (tr "dashboard.add-shared")]]) [:span (tr "dashboard.add-shared")]])
[:li.feedback {:on-click #(.open js/window "https://github.com/penpot/penpot/discussions" "_blank")}
[:span (tr "workspace.header.menu.feedback")]
[:span.primary-badge "ALPHA"]]
]]])) ]]]))
;; --- Header Component ;; --- Header Component