mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Fix game properties UI on small screens
This commit is contained in:
@@ -104,19 +104,21 @@ export default function RoleProperties(props: { plugin: WebPlugin, role?: lib.Ro
|
|||||||
<Form
|
<Form
|
||||||
form={form}
|
form={form}
|
||||||
disabled={!canUpdate}
|
disabled={!canUpdate}
|
||||||
labelAlign="left"
|
|
||||||
labelCol={{ span: 12 }}
|
labelCol={{ span: 12 }}
|
||||||
wrapperCol={{ span: 12 }}
|
wrapperCol={{ span: 12 }}
|
||||||
labelWrap
|
labelWrap
|
||||||
>
|
>
|
||||||
<Row gutter={[16, 0]}>
|
<Row gutter={[16, 0]}>
|
||||||
<Col xs={24} md={12} xl={8}>
|
<Col xs={24} sm={12} xl={6}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="order"
|
name="order"
|
||||||
label={labelled("Order", "A lower value is a more privileged role")}
|
label={labelled("Order", "A lower value is a more privileged role")}
|
||||||
>
|
>
|
||||||
<InputNumber style={{ width: "100%" }} />
|
<InputNumber style={{ width: "100%" }} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
|
||||||
|
<Col xs={24} sm={12} xl={6}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="priority"
|
name="priority"
|
||||||
label={labelled(
|
label={labelled(
|
||||||
@@ -129,19 +131,25 @@ export default function RoleProperties(props: { plugin: WebPlugin, role?: lib.Ro
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
<Col xs={24} md={12} xl={8}>
|
<Col xs={24} sm={12} xl={6}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="shortHand"
|
name="shortHand"
|
||||||
label={labelled("Short hand", "Short form of the name, used where space is limited")}
|
label={labelled("Short hand", "Short form of the name, used where space is limited")}
|
||||||
>
|
>
|
||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
|
||||||
|
<Col xs={24} sm={12} xl={6}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="tag"
|
name="tag"
|
||||||
label={labelled("Tag", "Shown next to the names of players with this role")}
|
label={labelled("Tag", "Shown next to the names of players with this role")}
|
||||||
>
|
>
|
||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
|
||||||
|
<Col xs={24} sm={12} xl={6}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="color"
|
name="color"
|
||||||
label={labelled("Colour", "Used for the role name and tag in game")}
|
label={labelled("Colour", "Used for the role name and tag in game")}
|
||||||
@@ -150,7 +158,7 @@ export default function RoleProperties(props: { plugin: WebPlugin, role?: lib.Ro
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
<Col xs={24} md={12} xl={8}>
|
<Col xs={24} sm={12} xl={6}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="autoAssignHours"
|
name="autoAssignHours"
|
||||||
label={labelled(
|
label={labelled(
|
||||||
@@ -161,6 +169,9 @@ export default function RoleProperties(props: { plugin: WebPlugin, role?: lib.Ro
|
|||||||
>
|
>
|
||||||
<InputNumber min={0} placeholder="Never" style={{ width: "100%" }} />
|
<InputNumber min={0} placeholder="Never" style={{ width: "100%" }} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
|
||||||
|
<Col xs={24} sm={12} xl={6}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="blockAutoAssign"
|
name="blockAutoAssign"
|
||||||
label={labelled(
|
label={labelled(
|
||||||
|
|||||||
Reference in New Issue
Block a user