diff options
author | 2023-03-11 10:49:44 +0100 | |
---|---|---|
committer | 2023-03-11 10:49:44 +0100 | |
commit | cb2f84e551727bd1852ed5fd93777289d3439bbf (patch) | |
tree | bb4d3cd8c3ae66a58d939b9252837fe4b7e421ce /web/source/settings/components/form/mutation-button.jsx | |
parent | [feature] Provide .well-known/host-meta endpoint (#1604) (diff) | |
download | gotosocial-cb2f84e551727bd1852ed5fd93777289d3439bbf.tar.xz |
[frontend/fix] Mobile css tweaks (#1605)
* mobile css tweaks
* bulk process list mobile css
Diffstat (limited to 'web/source/settings/components/form/mutation-button.jsx')
-rw-r--r-- | web/source/settings/components/form/mutation-button.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/source/settings/components/form/mutation-button.jsx b/web/source/settings/components/form/mutation-button.jsx index 97bcdf08d..9f0a1eb42 100644 --- a/web/source/settings/components/form/mutation-button.jsx +++ b/web/source/settings/components/form/mutation-button.jsx @@ -21,7 +21,7 @@ const React = require("react"); const { Error } = require("../error"); -module.exports = function MutationButton({ label, result, disabled, showError = true, className = "", ...inputProps }) { +module.exports = function MutationButton({ label, result, disabled, showError = true, className = "", wrapperClassName = "", ...inputProps }) { let iconClass = ""; const targetsThisButton = result.action == inputProps.name; // can also both be undefined, which is correct @@ -33,7 +33,7 @@ module.exports = function MutationButton({ label, result, disabled, showError = } } - return (<div> + return (<div className={wrapperClassName}> {(showError && targetsThisButton && result.error) && <Error error={result.error} /> } |