[bugfix] Fix some breakpoints.
This commit is contained in:
@@ -67,7 +67,7 @@ export const CheckboxContainer = (props) => (
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const SwitchBoxContainer = (props) => (
|
export const SwitchBoxContainer = (props) => (
|
||||||
<CommonContainer Component={SwitchBox} {...props} />
|
<CommonContainer Component={SwitchBox} {...props} add_break_point={false}/>
|
||||||
);
|
);
|
||||||
|
|
||||||
export const EntryContainer = (props) => (
|
export const EntryContainer = (props) => (
|
||||||
@@ -78,15 +78,22 @@ export const RadioButtonContainer = (props) => (
|
|||||||
<CommonContainer Component={RadioButton} {...props} />
|
<CommonContainer Component={RadioButton} {...props} />
|
||||||
);
|
);
|
||||||
|
|
||||||
export const DeeplAuthKeyContainer = (props) => (
|
export const DeeplAuthKeyContainer = (props) => {
|
||||||
<div className={styles.container}>
|
const { currentIsBreakPoint } = useStore_IsBreakPoint();
|
||||||
|
const container_class = clsx(styles.container, {
|
||||||
|
[styles.is_break_point]: currentIsBreakPoint.data,
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={container_class}>
|
||||||
<div className={styles.deepl_auth_key_label_section}>
|
<div className={styles.deepl_auth_key_label_section}>
|
||||||
<LabelComponent label={props.label} desc={props.desc} />
|
<LabelComponent label={props.label} desc={props.desc} />
|
||||||
<OpenWebpage_DeeplAuthKey />
|
<OpenWebpage_DeeplAuthKey />
|
||||||
</div>
|
</div>
|
||||||
<DeeplAuthKey {...props} />
|
<DeeplAuthKey {...props} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
};
|
||||||
|
|
||||||
export const ActionButtonContainer = (props) => (
|
export const ActionButtonContainer = (props) => (
|
||||||
<CommonContainer Component={ActionButton} {...props} add_break_point={false}/>
|
<CommonContainer Component={ActionButton} {...props} add_break_point={false}/>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import styles from "./Device.module.scss";
|
import styles from "./Device.module.scss";
|
||||||
|
import clsx from "clsx";
|
||||||
|
import { useStore_IsBreakPoint } from "@store";
|
||||||
import { ui_configs } from "@ui_configs";
|
import { ui_configs } from "@ui_configs";
|
||||||
import {
|
import {
|
||||||
useEnableAutoMicSelect,
|
useEnableAutoMicSelect,
|
||||||
@@ -68,9 +70,14 @@ const Mic_Container = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const { currentIsBreakPoint } = useStore_IsBreakPoint();
|
||||||
|
const device_container_class = clsx(styles.device_container, {
|
||||||
|
[styles.is_break_point]: currentIsBreakPoint.data,
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.mic_container}>
|
<div className={styles.mic_container}>
|
||||||
<div className={styles.device_container} onMouseLeave={onMouseLeaveFunction}>
|
<div className={device_container_class} onMouseLeave={onMouseLeaveFunction}>
|
||||||
<LabelComponent label={t("config_page.device.mic_host_device.label")} />
|
<LabelComponent label={t("config_page.device.mic_host_device.label")} />
|
||||||
<div className={styles.device_contents}>
|
<div className={styles.device_contents}>
|
||||||
|
|
||||||
@@ -159,9 +166,14 @@ const Speaker_Container = () => {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const { currentIsBreakPoint } = useStore_IsBreakPoint();
|
||||||
|
const device_container_class = clsx(styles.device_container, {
|
||||||
|
[styles.is_break_point]: currentIsBreakPoint.data,
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.speaker_container}>
|
<div className={styles.speaker_container}>
|
||||||
<div className={styles.device_container} onMouseLeave={onMouseLeaveFunction}>
|
<div className={device_container_class} onMouseLeave={onMouseLeaveFunction}>
|
||||||
<LabelComponent label={t("config_page.device.speaker_device.label")} />
|
<LabelComponent label={t("config_page.device.speaker_device.label")} />
|
||||||
<div className={styles.device_contents}>
|
<div className={styles.device_contents}>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,17 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
margin-bottom: 0rem;
|
margin-bottom: 0rem;
|
||||||
|
&.is_break_point {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2rem;
|
||||||
|
align-items: start;
|
||||||
|
& .device_contents {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-left: 0rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.threshold_container {
|
.threshold_container {
|
||||||
|
|||||||
Reference in New Issue
Block a user