mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Add pagination to saves list (#592)
Prevent the saves list from pushing the console and config off the screen by turning on the pagination for it.
This commit is contained in:
1 parent
e5a4d51c86
commit
abcbf3fddc
3 files changed
+14
-1
No files matched your search
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## Version 2.0.0-alpha.17
|
## Version 2.0.0-alpha.17
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Added pagination to the saves list.
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
- Fixed an unhandled error in Subspace Storage crashing the host.
|
- Fixed an unhandled error in Subspace Storage crashing the host.
|
||||||
|
|||||||
@@ -207,6 +207,7 @@ export default function SavesList(props: { instance: lib.InstanceDetails }) {
|
|||||||
|
|
||||||
let hostOffline = ["unassigned", "unknown"].includes(props.instance.status!);
|
let hostOffline = ["unassigned", "unknown"].includes(props.instance.status!);
|
||||||
const saveTable = <Table
|
const saveTable = <Table
|
||||||
|
className="save-list-table"
|
||||||
size="small"
|
size="small"
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
@@ -236,7 +237,6 @@ export default function SavesList(props: { instance: lib.InstanceDetails }) {
|
|||||||
]}
|
]}
|
||||||
dataSource={[...saves.values()]}
|
dataSource={[...saves.values()]}
|
||||||
rowKey={save => save.name}
|
rowKey={save => save.name}
|
||||||
pagination={false}
|
|
||||||
expandable={{
|
expandable={{
|
||||||
columnWidth: 33,
|
columnWidth: 33,
|
||||||
expandRowByClick: true,
|
expandRowByClick: true,
|
||||||
|
|||||||
@@ -182,10 +182,19 @@ body {
|
|||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.save-list-dragger .ant-upload.ant-upload-drag {
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
.save-list-dragger .ant-upload.ant-upload-btn {
|
.save-list-dragger .ant-upload.ant-upload-btn {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.save-list-table .ant-table-pagination.ant-pagination {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.rcon-result code {
|
.rcon-result code {
|
||||||
display: block;
|
display: block;
|
||||||
background: #000;
|
background: #000;
|
||||||
|
|||||||
Reference in new issue
Block a user