mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Remove useless div on drop zone
This would render on top of modals and doesn't appear to be necessary.
This commit is contained in:
1 parent
a883e692e4
commit
4068129124
2 files changed
+50
-64
No files matched your search
@@ -236,62 +236,55 @@ export default function ModsPage() {
|
|||||||
action={`${webRoot}api/upload-mod`}
|
action={`${webRoot}api/upload-mod`}
|
||||||
showUploadList={false}
|
showUploadList={false}
|
||||||
>
|
>
|
||||||
<div
|
<Dropzone />
|
||||||
style={{
|
<Table
|
||||||
position: "relative",
|
columns={[
|
||||||
zIndex: "1010",
|
{
|
||||||
|
title: "Name",
|
||||||
|
dataIndex: "title",
|
||||||
|
defaultSortOrder: "ascend",
|
||||||
|
sorter: (a, b) => (
|
||||||
|
strcmp(a.name, b.name) || a.integerVersion - b.integerVersion
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Version",
|
||||||
|
key: "version",
|
||||||
|
align: "right",
|
||||||
|
render: (_, mod) => <>
|
||||||
|
{`${mod.version} `}
|
||||||
|
<Typography.Text type="secondary">{`/ ${mod.factorioVersion}`}</Typography.Text>
|
||||||
|
</>,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Filename",
|
||||||
|
dataIndex: "filename",
|
||||||
|
responsive: ["xl"],
|
||||||
|
sorter: (a, b) => strcmp(a.filename, b.filename),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Size",
|
||||||
|
key: "size",
|
||||||
|
responsive: ["lg"],
|
||||||
|
render: (_, mod) => lib.formatBytes(mod.size),
|
||||||
|
align: "right",
|
||||||
|
sorter: (a, b) => a.size - b.size,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Action",
|
||||||
|
key: "action",
|
||||||
|
responsive: ["lg"],
|
||||||
|
render: (_, mod) => actions(mod),
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
expandable={{
|
||||||
|
expandedRowRender: (mod: lib.ModInfo) => <ModDetails mod={mod} actions={actions} />,
|
||||||
|
expandedRowClassName: () => "no-expanded-padding",
|
||||||
}}
|
}}
|
||||||
>
|
dataSource={[...mods.values()]}
|
||||||
<Dropzone />
|
pagination={false}
|
||||||
<Table
|
rowKey={mod => mod.id}
|
||||||
columns={[
|
/>
|
||||||
{
|
|
||||||
title: "Name",
|
|
||||||
dataIndex: "title",
|
|
||||||
defaultSortOrder: "ascend",
|
|
||||||
sorter: (a, b) => (
|
|
||||||
strcmp(a.name, b.name) || a.integerVersion - b.integerVersion
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Version",
|
|
||||||
key: "version",
|
|
||||||
align: "right",
|
|
||||||
render: (_, mod) => <>
|
|
||||||
{`${mod.version} `}
|
|
||||||
<Typography.Text type="secondary">{`/ ${mod.factorioVersion}`}</Typography.Text>
|
|
||||||
</>,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Filename",
|
|
||||||
dataIndex: "filename",
|
|
||||||
responsive: ["xl"],
|
|
||||||
sorter: (a, b) => strcmp(a.filename, b.filename),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Size",
|
|
||||||
key: "size",
|
|
||||||
responsive: ["lg"],
|
|
||||||
render: (_, mod) => lib.formatBytes(mod.size),
|
|
||||||
align: "right",
|
|
||||||
sorter: (a, b) => a.size - b.size,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Action",
|
|
||||||
key: "action",
|
|
||||||
responsive: ["lg"],
|
|
||||||
render: (_, mod) => actions(mod),
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
expandable={{
|
|
||||||
expandedRowRender: (mod: lib.ModInfo) => <ModDetails mod={mod} actions={actions} />,
|
|
||||||
expandedRowClassName: () => "no-expanded-padding",
|
|
||||||
}}
|
|
||||||
dataSource={[...mods.values()]}
|
|
||||||
pagination={false}
|
|
||||||
rowKey={mod => mod.id}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Upload.Dragger>
|
</Upload.Dragger>
|
||||||
<PluginExtra component="ModsPage" />
|
<PluginExtra component="ModsPage" />
|
||||||
</PageLayout>;
|
</PageLayout>;
|
||||||
|
|||||||
@@ -357,15 +357,8 @@ export default function SavesList(props: { instance: lib.InstanceDetails }) {
|
|||||||
{
|
{
|
||||||
account.hasPermission("core.instance.save.upload")
|
account.hasPermission("core.instance.save.upload")
|
||||||
? <Upload.Dragger className="save-list-dragger" openFileDialogOnClick={false} {...uploadProps}>
|
? <Upload.Dragger className="save-list-dragger" openFileDialogOnClick={false} {...uploadProps}>
|
||||||
<div
|
<Dropzone disabled={hostOffline} />
|
||||||
style={{
|
{saveTable}
|
||||||
position: "relative",
|
|
||||||
zIndex: "1010",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Dropzone disabled={hostOffline} />
|
|
||||||
{saveTable}
|
|
||||||
</div>
|
|
||||||
</Upload.Dragger>
|
</Upload.Dragger>
|
||||||
: saveTable
|
: saveTable
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user