mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix pass new icons to radio buttons (#7939)
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
[app.main.ui.components.numeric-input :as deprecated-input]
|
[app.main.ui.components.numeric-input :as deprecated-input]
|
||||||
[app.main.ui.components.radio-buttons :refer [radio-button radio-buttons]]
|
[app.main.ui.components.radio-buttons :refer [radio-button radio-buttons]]
|
||||||
[app.main.ui.components.title-bar :refer [title-bar*]]
|
[app.main.ui.components.title-bar :refer [title-bar*]]
|
||||||
|
[app.main.ui.ds.foundations.assets.icon :as i]
|
||||||
[app.main.ui.icons :as deprecated-icon]
|
[app.main.ui.icons :as deprecated-icon]
|
||||||
[app.main.ui.workspace.sidebar.options.menus.layout-container :refer [get-layout-flex-icon]]
|
[app.main.ui.workspace.sidebar.options.menus.layout-container :refer [get-layout-flex-icon]]
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
@@ -234,20 +235,20 @@
|
|||||||
|
|
||||||
[:& radio-button
|
[:& radio-button
|
||||||
{:value "fix"
|
{:value "fix"
|
||||||
:icon deprecated-icon/fixed-width
|
:icon i/fixed-width
|
||||||
:title "Fix width"
|
:title "Fix width"
|
||||||
:id "behaviour-h-fix"}]
|
:id "behaviour-h-fix"}]
|
||||||
|
|
||||||
(when has-fill
|
(when has-fill
|
||||||
[:& radio-button
|
[:& radio-button
|
||||||
{:value "fill"
|
{:value "fill"
|
||||||
:icon deprecated-icon/fill-content
|
:icon i/fill-content
|
||||||
:title "Width 100%"
|
:title "Width 100%"
|
||||||
:id "behaviour-h-fill"}])
|
:id "behaviour-h-fill"}])
|
||||||
(when is-auto
|
(when is-auto
|
||||||
[:& radio-button
|
[:& radio-button
|
||||||
{:value "auto"
|
{:value "auto"
|
||||||
:icon deprecated-icon/hug-content
|
:icon i/hug-content
|
||||||
:title "Fit content (Horizontal)"
|
:title "Fit content (Horizontal)"
|
||||||
:id "behaviour-h-auto"}])]])
|
:id "behaviour-h-auto"}])]])
|
||||||
|
|
||||||
@@ -268,7 +269,7 @@
|
|||||||
|
|
||||||
[:& radio-button
|
[:& radio-button
|
||||||
{:value "fix"
|
{:value "fix"
|
||||||
:icon deprecated-icon/fixed-width
|
:icon i/fixed-width
|
||||||
:icon-class (stl/css :rotated)
|
:icon-class (stl/css :rotated)
|
||||||
:title "Fix height"
|
:title "Fix height"
|
||||||
:id "behaviour-v-fix"}]
|
:id "behaviour-v-fix"}]
|
||||||
@@ -276,14 +277,14 @@
|
|||||||
(when has-fill
|
(when has-fill
|
||||||
[:& radio-button
|
[:& radio-button
|
||||||
{:value "fill"
|
{:value "fill"
|
||||||
:icon deprecated-icon/fill-content
|
:icon i/fill-content
|
||||||
:icon-class (stl/css :rotated)
|
:icon-class (stl/css :rotated)
|
||||||
:title "Height 100%"
|
:title "Height 100%"
|
||||||
:id "behaviour-v-fill"}])
|
:id "behaviour-v-fill"}])
|
||||||
(when is-auto
|
(when is-auto
|
||||||
[:& radio-button
|
[:& radio-button
|
||||||
{:value "auto"
|
{:value "auto"
|
||||||
:icon deprecated-icon/hug-content
|
:icon i/hug-content
|
||||||
:icon-class (stl/css :rotated)
|
:icon-class (stl/css :rotated)
|
||||||
:title "Fit content (Vertical)"
|
:title "Fit content (Vertical)"
|
||||||
:id "behaviour-v-auto"}])]])
|
:id "behaviour-v-auto"}])]])
|
||||||
|
|||||||
Reference in New Issue
Block a user