-
+
@@ -91,9 +91,9 @@ const Interfaces = () => {
{renderInterfaces(interfaces)}
+ {interfaceValue
+ && renderInterfaceValues(interfaceValue)}
- {interfaceValue
- && renderInterfaceValues(interfaceValue)}
>;
};
diff --git a/client/src/components/Settings/Dhcp/index.css b/client/src/components/Settings/Dhcp/index.css
new file mode 100644
index 00000000..5395f85d
--- /dev/null
+++ b/client/src/components/Settings/Dhcp/index.css
@@ -0,0 +1,31 @@
+.dhcp-form__button {
+ margin: 0 1rem;
+}
+
+.page-title--dhcp {
+ display: flex;
+ align-items: center;
+}
+
+.col__dhcp {
+ flex: 0 0 50%;
+ max-width: 50%;
+}
+
+@media (max-width: 991.98px) {
+ .dhcp-form__button {
+ margin: 0.5rem 0;
+ display: block;
+ }
+
+ .page-title--dhcp {
+ flex-direction: column;
+ align-items: flex-start;
+ padding-bottom: 0.5rem;
+ }
+
+ .col__dhcp {
+ flex: 0 0 100%;
+ max-width: 100%;
+ }
+}
diff --git a/client/src/components/Settings/Dhcp/index.js b/client/src/components/Settings/Dhcp/index.js
index 1def906c..05732c19 100644
--- a/client/src/components/Settings/Dhcp/index.js
+++ b/client/src/components/Settings/Dhcp/index.js
@@ -31,6 +31,7 @@ import {
calculateDhcpPlaceholdersIpv4,
calculateDhcpPlaceholdersIpv6,
} from '../../../helpers/helpers';
+import './index.css';
const Dhcp = () => {
const { t } = useTranslation();
@@ -114,7 +115,7 @@ const Dhcp = () => {
.every(Boolean) || Object.values(v6)
.every(Boolean));
- const className = classNames('btn btn-sm mr-2', {
+ const className = classNames('btn btn-sm', {
'btn-gray': enabled,
'btn-outline-success': !enabled,
});
@@ -141,7 +142,7 @@ const Dhcp = () => {
;
};
- const statusButtonClass = classNames('btn btn-sm mx-2', {
+ const statusButtonClass = classNames('btn btn-sm dhcp-form__button', {
'btn-loading btn-primary': processingStatus,
'btn-outline-primary': !processingStatus,
});
@@ -171,28 +172,24 @@ const Dhcp = () => {
const toggleDhcpButton = getToggleDhcpButton();
return <>
-
-
-
- {toggleDhcpButton}
-
-
-
-
+
+ {toggleDhcpButton}
+
+
{!processing && !processingInterfaces
&& <>
diff --git a/client/src/components/Settings/FormButton.css b/client/src/components/Settings/FormButton.css
new file mode 100644
index 00000000..99d9e3c4
--- /dev/null
+++ b/client/src/components/Settings/FormButton.css
@@ -0,0 +1,11 @@
+.form__button {
+ margin-left: 1.5rem;
+}
+
+@media (max-width: 500px) {
+ .form__button {
+ margin-left: 0;
+ margin-top: 1rem;
+ display: block;
+ }
+}
diff --git a/client/src/components/Settings/LogsConfig/Form.js b/client/src/components/Settings/LogsConfig/Form.js
index aa3b61b3..a89c89db 100644
--- a/client/src/components/Settings/LogsConfig/Form.js
+++ b/client/src/components/Settings/LogsConfig/Form.js
@@ -6,6 +6,7 @@ import flow from 'lodash/flow';
import { renderCheckboxField, renderRadioField, toNumber } from '../../../helpers/form';
import { FORM_NAME, QUERY_LOG_INTERVALS_DAYS } from '../../../helpers/constants';
+import '../FormButton.css';
const getIntervalFields = (processing, t, toNumber) => QUERY_LOG_INTERVALS_DAYS.map((interval) => {
const title = interval === 1 ? t('interval_24_hour') : t('interval_days', { count: interval });
@@ -68,7 +69,7 @@ const Form = (props) => {