mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Fix conflict between defaultFilteredValue and responsive
This commit is contained in:
1 file changed
+3
-2
@@ -199,7 +199,7 @@ export default function UsersTable({ instanceId, onlyOnline = false, pagination,
|
|||||||
title: "Last seen",
|
title: "Last seen",
|
||||||
key: "lastSeen",
|
key: "lastSeen",
|
||||||
filterMultiple: false,
|
filterMultiple: false,
|
||||||
defaultFilteredValue: onlyOnline ? "online" : undefined,
|
defaultFilteredValue: onlyOnline ? ["online"] : undefined,
|
||||||
filters: [
|
filters: [
|
||||||
{ text: "Online", value: "online" },
|
{ text: "Online", value: "online" },
|
||||||
{ text: "24h", value: "24h" },
|
{ text: "24h", value: "24h" },
|
||||||
@@ -231,7 +231,8 @@ export default function UsersTable({ instanceId, onlyOnline = false, pagination,
|
|||||||
},
|
},
|
||||||
sorter: (a: lib.UserDetails, b: lib.UserDetails) => sortLastSeen(a, b, instanceId, instanceId),
|
sorter: (a: lib.UserDetails, b: lib.UserDetails) => sortLastSeen(a, b, instanceId, instanceId),
|
||||||
render: (_: any, user: lib.UserDetails) => formatLastSeen(user, instanceId),
|
render: (_: any, user: lib.UserDetails) => formatLastSeen(user, instanceId),
|
||||||
responsive: ["lg"],
|
// Responsive breaks defaultFilteredValue, see: https://github.com/ant-design/ant-design/issues/32847
|
||||||
|
// responsive: ["lg"],
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user