mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	fixup! Fix buttons size outside of form's card layout
This commit is contained in:
		@@ -8,4 +8,4 @@
 | 
			
		||||
/** Bootstrap column size for form fields */
 | 
			
		||||
// eslint-disable-next-line import/prefer-default-export
 | 
			
		||||
export const formFieldsSize = "card p-4 col-sm-12 col-lg-12 p-0 mb-3";
 | 
			
		||||
export const buttonFormFieldSize = "col-sm-12 col-lg-12 p-0 mb-3";
 | 
			
		||||
export const buttonFormFieldsSize = "col-sm-12 col-lg-12 p-0 mb-3";
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ import { useAlert } from "../../alertContext/AlertContext";
 | 
			
		||||
import { ALERT_TYPES } from "../../bootstrap/Alert";
 | 
			
		||||
import { useAPIPost } from "../../api/hooks";
 | 
			
		||||
import { API_STATE } from "../../api/utils";
 | 
			
		||||
import { buttonFormFieldSize } from "../../bootstrap/constants";
 | 
			
		||||
import { buttonFormFieldsSize } from "../../bootstrap/constants";
 | 
			
		||||
 | 
			
		||||
ResetWiFiSettings.propTypes = {
 | 
			
		||||
    ws: PropTypes.object.isRequired,
 | 
			
		||||
@@ -59,7 +59,7 @@ If a number of wireless cards doesn't match, you may try to reset the Wi-Fi sett
 | 
			
		||||
current Wi-Fi configuration and restore the default values.
 | 
			
		||||
        `)}
 | 
			
		||||
            </p>
 | 
			
		||||
            <div className={`${buttonFormFieldSize} text-right`}>
 | 
			
		||||
            <div className={`${buttonFormFieldsSize} text-right`}>
 | 
			
		||||
                <Button
 | 
			
		||||
                    className="btn-warning"
 | 
			
		||||
                    forisFormSize
 | 
			
		||||
 
 | 
			
		||||
@@ -30,7 +30,7 @@ export { PasswordInput } from "./bootstrap/PasswordInput";
 | 
			
		||||
export { Radio, RadioSet } from "./bootstrap/RadioSet";
 | 
			
		||||
export { Select } from "./bootstrap/Select";
 | 
			
		||||
export { TextInput } from "./bootstrap/TextInput";
 | 
			
		||||
export { formFieldsSize, buttonFormFieldSize } from "./bootstrap/constants";
 | 
			
		||||
export { formFieldsSize, buttonFormFieldsSize } from "./bootstrap/constants";
 | 
			
		||||
export { Switch } from "./bootstrap/Switch";
 | 
			
		||||
 | 
			
		||||
export { Spinner, SpinnerElement } from "./bootstrap/Spinner";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user