mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
🐛 Fix different button size on webhooks
This commit is contained in:
parent
c7001fed3c
commit
df43912fe5
4 changed files with 10 additions and 11 deletions
|
@ -296,19 +296,13 @@
|
|||
|
||||
(mf/defc submit-button*
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [on-click children label form class name disabled large?] :as props}]
|
||||
[{:keys [on-click children label form class name disabled] :as props}]
|
||||
(let [form (or form (mf/use-ctx form-ctx))
|
||||
|
||||
disabled? (or (and (some? form) (not (:valid @form)))
|
||||
(true? disabled))
|
||||
|
||||
large? (d/nilv large? true)
|
||||
|
||||
class (dm/str (d/nilv class "btn-primary")
|
||||
" "
|
||||
(if large? "btn-large" "")
|
||||
" "
|
||||
(if disabled? (stl/css :btn-disabled) ""))
|
||||
class (d/nilv class (stl/css :button-submit))
|
||||
|
||||
name (d/nilv name "submit")
|
||||
|
||||
|
|
|
@ -257,7 +257,11 @@
|
|||
}
|
||||
|
||||
// SUBMIT-BUTTON
|
||||
.btn-disabled {
|
||||
.button-submit {
|
||||
@extend .button-primary;
|
||||
}
|
||||
|
||||
:disabled {
|
||||
@extend .button-disabled;
|
||||
}
|
||||
|
||||
|
@ -422,6 +426,7 @@
|
|||
fill: none;
|
||||
}
|
||||
}
|
||||
|
||||
//TEXTAREA
|
||||
|
||||
.textarea-label {
|
||||
|
|
|
@ -117,6 +117,6 @@
|
|||
{:label (if team
|
||||
(tr "labels.update-team")
|
||||
(tr "labels.create-team"))
|
||||
:className (stl/css :accept-btn)}]]]]]]))
|
||||
:class (stl/css :accept-btn)}]]]]]]))
|
||||
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
[:> fm/submit-button*
|
||||
{:label (tr "dashboard.save-settings")
|
||||
:disabled (empty? (:touched @form))
|
||||
:className (stl/css :btn-primary)}]
|
||||
:class (stl/css :btn-primary)}]
|
||||
|
||||
[:div {:class (stl/css :links)}
|
||||
[:div {:class (stl/css :link-item)}
|
||||
|
|
Loading…
Add table
Reference in a new issue