mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Revert "✨ Add test AB renaming "Libraries" to "Add library""
This reverts commit ec7f8a6aa7
.
This commit is contained in:
parent
ee62016c34
commit
08516ac7ca
4 changed files with 6 additions and 43 deletions
|
@ -8,7 +8,6 @@
|
||||||
(:require-macros [app.main.style :as stl])
|
(:require-macros [app.main.style :as stl])
|
||||||
(:require
|
(:require
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
[app.config :as cf]
|
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
[app.main.data.workspace.assets :as dwa]
|
[app.main.data.workspace.assets :as dwa]
|
||||||
|
@ -87,7 +86,6 @@
|
||||||
section (:section filters)
|
section (:section filters)
|
||||||
ordering (:ordering filters)
|
ordering (:ordering filters)
|
||||||
reverse-sort? (= :desc ordering)
|
reverse-sort? (= :desc ordering)
|
||||||
num-libs (count (mf/deref refs/workspace-libraries))
|
|
||||||
|
|
||||||
toggle-ordering
|
toggle-ordering
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
@ -157,18 +155,12 @@
|
||||||
[:article {:class (stl/css :assets-bar)}
|
[:article {:class (stl/css :assets-bar)}
|
||||||
[:div {:class (stl/css :assets-header)}
|
[:div {:class (stl/css :assets-header)}
|
||||||
(when-not ^boolean read-only?
|
(when-not ^boolean read-only?
|
||||||
(if (and (cf/external-feature-flag "templates-02" "test")
|
[:button {:class (stl/css :libraries-button)
|
||||||
(zero? num-libs))
|
:on-click show-libraries-dialog
|
||||||
[:button {:class (stl/css :add-library-button)
|
:data-testid "libraries"}
|
||||||
:on-click show-libraries-dialog
|
[:span {:class (stl/css :libraries-icon)}
|
||||||
:data-testid "libraries"}
|
i/library]
|
||||||
(tr "workspace.assets.add-library")]
|
(tr "workspace.assets.libraries")])
|
||||||
[:button {:class (stl/css :libraries-button)
|
|
||||||
:on-click show-libraries-dialog
|
|
||||||
:data-testid "libraries"}
|
|
||||||
[:span {:class (stl/css :libraries-icon)}
|
|
||||||
i/library]
|
|
||||||
(tr "workspace.assets.libraries")]))
|
|
||||||
|
|
||||||
[:div {:class (stl/css :search-wrapper)}
|
[:div {:class (stl/css :search-wrapper)}
|
||||||
[:& search-bar {:on-change on-search-term-change
|
[:& search-bar {:on-change on-search-term-change
|
||||||
|
|
|
@ -25,50 +25,34 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: $s-4;
|
margin-bottom: $s-4;
|
||||||
border-radius: $s-8;
|
border-radius: $s-8;
|
||||||
|
|
||||||
.libraries-icon {
|
.libraries-icon {
|
||||||
@include flexCenter;
|
@include flexCenter;
|
||||||
width: $s-24;
|
width: $s-24;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
@include flexCenter;
|
@include flexCenter;
|
||||||
@extend .button-icon;
|
@extend .button-icon;
|
||||||
stroke: var(--icon-foreground);
|
stroke: var(--icon-foreground);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--button-secondary-background-color-hover);
|
background-color: var(--button-secondary-background-color-hover);
|
||||||
color: var(--button-secondary-foreground-color-hover);
|
color: var(--button-secondary-foreground-color-hover);
|
||||||
border: $s-1 solid var(--button-secondary-border-color-hover);
|
border: $s-1 solid var(--button-secondary-border-color-hover);
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
stroke: var(--button-secondary-foreground-color-hover);
|
stroke: var(--button-secondary-foreground-color-hover);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
background-color: var(--button-secondary-background-color-focus);
|
background-color: var(--button-secondary-background-color-focus);
|
||||||
color: var(--button-secondary-foreground-color-focus);
|
color: var(--button-secondary-foreground-color-focus);
|
||||||
border: $s-1 solid var(--button-secondary-border-color-focus);
|
border: $s-1 solid var(--button-secondary-border-color-focus);
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
stroke: var(--button-secondary-foreground-color-focus);
|
stroke: var(--button-secondary-foreground-color-focus);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.add-library-button {
|
|
||||||
@extend .button-primary;
|
|
||||||
text-transform: uppercase;
|
|
||||||
gap: $s-2;
|
|
||||||
height: $s-32;
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: $s-4;
|
|
||||||
border-radius: $s-8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-button {
|
.section-button {
|
||||||
@include flexCenter;
|
@include flexCenter;
|
||||||
@include buttonStyle;
|
@include buttonStyle;
|
||||||
|
@ -78,39 +62,32 @@
|
||||||
border: $s-1 solid var(--input-border-color-rest);
|
border: $s-1 solid var(--input-border-color-rest);
|
||||||
border-radius: $br-8 $br-2 $br-2 $br-8;
|
border-radius: $br-8 $br-2 $br-2 $br-8;
|
||||||
background-color: var(--input-background-color-rest);
|
background-color: var(--input-background-color-rest);
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
height: $s-16;
|
height: $s-16;
|
||||||
width: $s-16;
|
width: $s-16;
|
||||||
stroke: var(--icon-foreground);
|
stroke: var(--icon-foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border: $s-1 solid var(--input-border-color-focus);
|
border: $s-1 solid var(--input-border-color-focus);
|
||||||
outline: 0;
|
outline: 0;
|
||||||
background-color: var(--input-background-color-focus);
|
background-color: var(--input-background-color-focus);
|
||||||
color: var(--input-foreground-color-focus);
|
color: var(--input-foreground-color-focus);
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
background-color: var(--input-background-color-focus);
|
background-color: var(--input-background-color-focus);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border: $s-1 solid var(--input-border-color-hover);
|
border: $s-1 solid var(--input-border-color-hover);
|
||||||
background-color: var(--input-background-color-hover);
|
background-color: var(--input-background-color-hover);
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
background-color: var(--input-background-color-hover);
|
background-color: var(--input-background-color-hover);
|
||||||
stroke: var(--button-foreground-hover);
|
stroke: var(--button-foreground-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border: $s-1 solid var(--input-border-color-focus);
|
border: $s-1 solid var(--input-border-color-focus);
|
||||||
outline: 0;
|
outline: 0;
|
||||||
background-color: var(--input-background-color-focus);
|
background-color: var(--input-background-color-focus);
|
||||||
color: var(--input-foreground-color-focus);
|
color: var(--input-foreground-color-focus);
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
background-color: var(--input-background-color-focus);
|
background-color: var(--input-background-color-focus);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4064,9 +4064,6 @@ msgstr "Group name"
|
||||||
msgid "workspace.assets.libraries"
|
msgid "workspace.assets.libraries"
|
||||||
msgstr "Libraries"
|
msgstr "Libraries"
|
||||||
|
|
||||||
msgid "workspace.assets.add-library"
|
|
||||||
msgstr "Add library"
|
|
||||||
|
|
||||||
#: src/app/main/ui/workspace/sidebar/assets/components.cljs:523
|
#: src/app/main/ui/workspace/sidebar/assets/components.cljs:523
|
||||||
msgid "workspace.assets.list-view"
|
msgid "workspace.assets.list-view"
|
||||||
msgstr "List view"
|
msgstr "List view"
|
||||||
|
|
|
@ -4064,9 +4064,6 @@ msgstr "Nombre del grupo"
|
||||||
msgid "workspace.assets.libraries"
|
msgid "workspace.assets.libraries"
|
||||||
msgstr "Bibliotecas"
|
msgstr "Bibliotecas"
|
||||||
|
|
||||||
msgid "workspace.assets.add-library"
|
|
||||||
msgstr "Añadir biblioteca"
|
|
||||||
|
|
||||||
#: src/app/main/ui/workspace/sidebar/assets/components.cljs:523
|
#: src/app/main/ui/workspace/sidebar/assets/components.cljs:523
|
||||||
msgid "workspace.assets.list-view"
|
msgid "workspace.assets.list-view"
|
||||||
msgstr "Ver como lista"
|
msgstr "Ver como lista"
|
||||||
|
|
Loading…
Reference in a new issue