mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[frontend/fix] Mobile css tweaks (#1605)
* mobile css tweaks * bulk process list mobile css
This commit is contained in:
@ -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} />
|
||||
}
|
||||
|
Reference in New Issue
Block a user