🐛 Fix line cap select

This commit is contained in:
alonso.torres 2024-01-15 17:01:19 +01:00 committed by Andrés Moya
parent eeabeadc39
commit 339cdbec2d
13 changed files with 24 additions and 14 deletions

View file

@ -49,6 +49,7 @@
.separator {
margin: 0;
height: $s-12;
border-top: 1px solid $db-primary;
}
}
.checked-element {

View file

@ -466,6 +466,15 @@
(def ^:icon view-as-icons-refactor (icon-xref :view-as-icons-refactor))
(def ^:icon wrap-refactor (icon-xref :wrap-refactor))
(def ^:icon view-as-list-refactor (icon-xref :view-as-list-refactor))
(def ^:icon cap-line-arrow (icon-xref :cap-line-arrow))
(def ^:icon cap-triangle-arrow (icon-xref :cap-triangle-arrow))
(def ^:icon cap-square-marker (icon-xref :cap-square-marker))
(def ^:icon cap-circle-marker (icon-xref :cap-circle-marker))
(def ^:icon cap-diamond-marker (icon-xref :cap-diamond-marker))
(def ^:icon cap-round (icon-xref :cap-round))
(def ^:icon cap-square (icon-xref :cap-square))
(def ^:icon loader-pencil
(mf/html
[:svg

View file

@ -123,14 +123,14 @@
stroke-caps-options
[{:value nil :label (tr "workspace.options.stroke-cap.none")}
:separator
{:value :line-arrow :label (tr "workspace.options.stroke-cap.line-arrow-short")}
{:value :triangle-arrow :label (tr "workspace.options.stroke-cap.triangle-arrow-short")}
{:value :square-marker :label (tr "workspace.options.stroke-cap.square-marker-short")}
{:value :circle-marker :label (tr "workspace.options.stroke-cap.circle-marker-short")}
{:value :diamond-marker :label (tr "workspace.options.stroke-cap.diamond-marker-short")}
{:value :line-arrow :label (tr "workspace.options.stroke-cap.line-arrow-short") :icon :cap-line-arrow}
{:value :triangle-arrow :label (tr "workspace.options.stroke-cap.triangle-arrow-short") :icon :cap-triangle-arrow}
{:value :square-marker :label (tr "workspace.options.stroke-cap.square-marker-short") :icon :cap-square-marker}
{:value :circle-marker :label (tr "workspace.options.stroke-cap.circle-marker-short") :icon :cap-circle-marker}
{:value :diamond-marker :label (tr "workspace.options.stroke-cap.diamond-marker-short") :icon :cap-diamond-marker}
:separator
{:value :round :label (tr "workspace.options.stroke-cap.round")}
{:value :square :label (tr "workspace.options.stroke-cap.square")}]
{:value :round :label (tr "workspace.options.stroke-cap.round") :icon :cap-round}
{:value :square :label (tr "workspace.options.stroke-cap.square") :icon :cap-square}]
on-cap-switch
(mf/use-callback