mirror of
https://github.com/penpot/penpot.git
synced 2025-02-25 08:16:49 -05:00
Merge pull request #2153 from penpot/eva-fix-shared-placeholder
⏪ Fix shared libraries placehoder
This commit is contained in:
commit
b404246f8a
7 changed files with 34 additions and 9 deletions
|
@ -338,7 +338,27 @@
|
||||||
background-color: rgba(227, 227, 227, 0.3);
|
background-color: rgba(227, 227, 227, 0.3);
|
||||||
padding: 13px;
|
padding: 13px;
|
||||||
margin-right: 13px;
|
margin-right: 13px;
|
||||||
|
&.libs {
|
||||||
|
background-image: url(/images/ph-left.svg), url(/images/ph-right.svg);
|
||||||
|
background-position: 15% bottom, 85% top;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
align-items: center;
|
||||||
|
border: 1px dashed #b1b2b5;
|
||||||
|
border-radius: 3px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 200px;
|
||||||
|
margin: 1rem;
|
||||||
|
padding: 3rem;
|
||||||
|
justify-content: center;
|
||||||
|
.text {
|
||||||
|
p {
|
||||||
|
max-width: 360px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: $fs16;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.create-new {
|
.create-new {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: 2px solid $color-gray-10;
|
border: 2px solid $color-gray-10;
|
||||||
|
|
|
@ -273,12 +273,12 @@
|
||||||
:key (:id item)
|
:key (:id item)
|
||||||
:navigate? true
|
:navigate? true
|
||||||
:origin origin}])]
|
:origin origin}])]
|
||||||
|
|
||||||
:else
|
:else
|
||||||
[:& empty-placeholder {:default? (:is-default project)
|
[:& empty-placeholder {:default? (:is-default project)
|
||||||
:on-create-clicked on-create-clicked
|
:on-create-clicked on-create-clicked
|
||||||
:project project
|
:project project
|
||||||
:limit limit}])]))
|
:limit limit
|
||||||
|
:origin origin}])]))
|
||||||
|
|
||||||
(mf/defc line-grid-row
|
(mf/defc line-grid-row
|
||||||
[{:keys [files selected-files dragging? limit] :as props}]
|
[{:keys [files selected-files dragging? limit] :as props}]
|
||||||
|
|
|
@ -11,13 +11,16 @@
|
||||||
[rumext.alpha :as mf]))
|
[rumext.alpha :as mf]))
|
||||||
|
|
||||||
(mf/defc empty-placeholder
|
(mf/defc empty-placeholder
|
||||||
[{:keys [dragging? on-create-clicked project limit] :as props}]
|
[{:keys [dragging? on-create-clicked project limit origin] :as props}]
|
||||||
(cond
|
(cond
|
||||||
(true? dragging?)
|
(true? dragging?)
|
||||||
[:div.grid-row.no-wrap
|
[:div.grid-row.no-wrap
|
||||||
{:style {:grid-template-columns (str "repeat(" limit ", 1fr)")}}
|
{:style {:grid-template-columns (str "repeat(" limit ", 1fr)")}}
|
||||||
[:div.grid-item]]
|
[:div.grid-item]]
|
||||||
|
(= :libraries origin)
|
||||||
|
[:div.grid-empty-placeholder.libs {:data-test "empty-placeholder"}
|
||||||
|
[:div.text
|
||||||
|
[:& i18n/tr-html {:label "dashboard.empty-placeholder-drafts"}]]]
|
||||||
:else
|
:else
|
||||||
[:div.grid-empty-placeholder
|
[:div.grid-empty-placeholder
|
||||||
{:style {:grid-template-columns (str "repeat(" limit ", 1fr)")}}
|
{:style {:grid-template-columns (str "repeat(" limit ", 1fr)")}}
|
||||||
|
|
|
@ -277,6 +277,7 @@ msgid "dashboard.empty-files"
|
||||||
msgstr "Todavía no hay ningún archivo aquí"
|
msgstr "Todavía no hay ningún archivo aquí"
|
||||||
|
|
||||||
#: src/app/main/ui/dashboard/grid.cljs
|
#: src/app/main/ui/dashboard/grid.cljs
|
||||||
|
#, markdown
|
||||||
msgid "dashboard.empty-placeholder-drafts"
|
msgid "dashboard.empty-placeholder-drafts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"¡Oh, no! ¡Aún no tienes archivos! Si quieres probar con alguna plantilla ve "
|
"¡Oh, no! ¡Aún no tienes archivos! Si quieres probar con alguna plantilla ve "
|
||||||
|
@ -378,6 +379,7 @@ msgid_plural "dashboard.fonts.fonts-added"
|
||||||
msgstr[0] "1 fuente añadida"
|
msgstr[0] "1 fuente añadida"
|
||||||
msgstr[1] "%s fuentes añadidas"
|
msgstr[1] "%s fuentes añadidas"
|
||||||
|
|
||||||
|
#, markdown
|
||||||
msgid "dashboard.fonts.hero-text1"
|
msgid "dashboard.fonts.hero-text1"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Cualquier fuente personalizada añadida aquí aparecerá en la lista de "
|
"Cualquier fuente personalizada añadida aquí aparecerá en la lista de "
|
||||||
|
@ -386,6 +388,7 @@ msgstr ""
|
||||||
"como una **única familia de fuentes**. Se pueden cargar fuentes con los "
|
"como una **única familia de fuentes**. Se pueden cargar fuentes con los "
|
||||||
"siguientes formatos: **TTF, OTF and WOFF** (con uno es suficiente)."
|
"siguientes formatos: **TTF, OTF and WOFF** (con uno es suficiente)."
|
||||||
|
|
||||||
|
#, markdown
|
||||||
msgid "dashboard.fonts.hero-text2"
|
msgid "dashboard.fonts.hero-text2"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Sólo deberías cargar fuentes que te pertenecen o de las que tienes una "
|
"Sólo deberías cargar fuentes que te pertenecen o de las que tienes una "
|
||||||
|
|
|
@ -230,6 +230,7 @@ msgid "dashboard.empty-files"
|
||||||
msgstr "עדיין אין לך כאן קבצים"
|
msgstr "עדיין אין לך כאן קבצים"
|
||||||
|
|
||||||
#: src/app/main/ui/dashboard/grid.cljs
|
#: src/app/main/ui/dashboard/grid.cljs
|
||||||
|
#, markdown
|
||||||
msgid "dashboard.empty-placeholder-drafts"
|
msgid "dashboard.empty-placeholder-drafts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"אבוי! עדיין אין לך קבצים! כדי להתנסות עם כמה מהתבניות ניתן לגשת אל [הספריות "
|
"אבוי! עדיין אין לך קבצים! כדי להתנסות עם כמה מהתבניות ניתן לגשת אל [הספריות "
|
||||||
|
|
|
@ -237,6 +237,7 @@ msgid "dashboard.empty-files"
|
||||||
msgstr "Burada hiç dosyan yok"
|
msgstr "Burada hiç dosyan yok"
|
||||||
|
|
||||||
#: src/app/main/ui/dashboard/grid.cljs
|
#: src/app/main/ui/dashboard/grid.cljs
|
||||||
|
#, markdown
|
||||||
msgid "dashboard.empty-placeholder-drafts"
|
msgid "dashboard.empty-placeholder-drafts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Olamaz! Henüz dosyanız yok! Bazı şablonları denemek isterseniz "
|
"Olamaz! Henüz dosyanız yok! Bazı şablonları denemek isterseniz "
|
||||||
|
|
|
@ -227,18 +227,16 @@ msgid "dashboard.duplicate-multi"
|
||||||
msgstr "複製 %s 個檔案"
|
msgstr "複製 %s 個檔案"
|
||||||
|
|
||||||
#: src/app/main/ui/dashboard/grid.cljs
|
#: src/app/main/ui/dashboard/grid.cljs
|
||||||
#, fuzzy
|
|
||||||
msgid "dashboard.empty-files"
|
msgid "dashboard.empty-files"
|
||||||
msgstr "你在這裡還沒有文件"
|
msgstr "你在這裡還沒有文件"
|
||||||
|
|
||||||
#: src/app/main/ui/dashboard/grid.cljs
|
#: src/app/main/ui/dashboard/grid.cljs
|
||||||
#, fuzzy, markdown
|
#, markdown
|
||||||
msgid "dashboard.empty-placeholder-drafts"
|
msgid "dashboard.empty-placeholder-drafts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"這裡還沒有文件,如果你想嘗試一些模板,你可以前往 [資料庫 & "
|
"這裡還沒有文件,如果你想嘗試一些模板,你可以前往 [資料庫 & "
|
||||||
"模板區段](https://penpot.app/libraries-templates.html)"
|
"模板區段](https://penpot.app/libraries-templates.html)"
|
||||||
|
|
||||||
#, fuzzy
|
|
||||||
msgid "dashboard.export-frames"
|
msgid "dashboard.export-frames"
|
||||||
msgstr "將 artboards 匯出為 PDF..."
|
msgstr "將 artboards 匯出為 PDF..."
|
||||||
|
|
||||||
|
@ -251,7 +249,6 @@ msgstr "匯出檔案"
|
||||||
msgid "dashboard.export.detail"
|
msgid "dashboard.export.detail"
|
||||||
msgstr "* 可能會包含元件、圖像、顏色及/或文字編排。"
|
msgstr "* 可能會包含元件、圖像、顏色及/或文字編排。"
|
||||||
|
|
||||||
#, fuzzy
|
|
||||||
msgid "dashboard.export.explain"
|
msgid "dashboard.export.explain"
|
||||||
msgstr "你想匯出的單個或多個檔案中使用了共用資料庫,你想要如何處理它們的素材*?"
|
msgstr "你想匯出的單個或多個檔案中使用了共用資料庫,你想要如何處理它們的素材*?"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue