optimize setting layout

This commit is contained in:
2023-10-25 11:43:42 +08:00
parent d30b2e3d5a
commit e19431b833

View File

@@ -108,6 +108,7 @@ const Slicer = (props: {
<label className="m-2 p-2">{props.field}</label> <label className="m-2 p-2">{props.field}</label>
<span> <span>
<input <input
className="m-2 p-2 border rounded focus w-28"
type="range" type="range"
min="0" min="0"
max="1" max="1"
@@ -120,6 +121,7 @@ const Slicer = (props: {
}} }}
/> />
<input <input
className="m-2 p-2 border rounded focus w-28"
type="number" type="number"
value={props.chatStore[props.field]} value={props.chatStore[props.field]}
onChange={(event: any) => { onChange={(event: any) => {
@@ -245,7 +247,7 @@ export default (props: {
}} }}
className="m-2 p-2 bg-white rounded-lg h-fit lg:w-2/3 z-20" className="m-2 p-2 bg-white rounded-lg h-fit lg:w-2/3 z-20"
> >
<h3 className="text-xl text-center"> <h3 className="text-xl text-center flex justify-between">
<span>{Tr("Settings")}</span> <span>{Tr("Settings")}</span>
<select> <select>
{Object.keys(LANG_OPTIONS).map((opt) => ( {Object.keys(LANG_OPTIONS).map((opt) => (