mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 07:42:25 -05:00
[frontend/fix] Mobile css tweaks (#1605)
* mobile css tweaks * bulk process list mobile css
This commit is contained in:
parent
a312238e79
commit
cb2f84e551
6 changed files with 149 additions and 85 deletions
|
|
@ -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} />
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue