Skip to content

Commit

Permalink
fix: Optimize UI of agent list when its columns are overflow (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: yaojiping <[email protected]>
  • Loading branch information
yaojp123 and yaojiping authored Dec 19, 2024
1 parent f9baad0 commit 1475ded
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion web/src/components/Anchor/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
}
.fixed-top {
position: fixed;
z-index: 1000;
z-index: 10;
}
3 changes: 0 additions & 3 deletions web/src/pages/Agent/Instance/components/RowDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,17 @@ export const AgentRowDetail = ({ agentID, t }) => {
{
title: "PID",
dataIndex: "node_info.process.id",
width: 150,
},
{
title: "Port",
dataIndex: "node_info.http.publish_address",
render: (text, record) => {
return text?.split(":")?.[1];
},
width: 150,
},
{
title: "Cluster",
dataIndex: "cluster_info.cluster_name",
width: 180,
render: (text, record) => {
return <>
<div style={{
Expand Down
8 changes: 0 additions & 8 deletions web/src/pages/Agent/Instance/components/UnknownProcess.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ export default (props) => {
{
title: "PID",
dataIndex: "pid",
ellipsis: true,
width: 150,
},
{
title: "Name",
dataIndex: "name",
ellipsis: true,
width: 150,
},
{
title: "Cmdline",
Expand Down Expand Up @@ -57,7 +53,6 @@ export default (props) => {
</>
);
},
ellipsis: true,
},
{
title: "Listen addresses",
Expand All @@ -75,8 +70,6 @@ export default (props) => {
})}
</>
),
ellipsis: true,
width: 300,
},
{
title: formatMessage({ id: "table.field.actions" }),
Expand All @@ -93,7 +86,6 @@ export default (props) => {
</a>
</div>
),
ellipsis: true,
width: 100,
},
];
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/System/Cluster/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default (props) => {
if (type === 'node') {
title = formatMessage({ id: "form.button.clean.unavailable.nodes.desc" })
} else if (type === 'index') {
title = formatMessage({ id: "form.button.clean.unavailable.indices.desc" })
title = formatMessage({ id: "form.button.clean.deleted.indices.desc" })
}
Modal.confirm({
title,
Expand Down

0 comments on commit 1475ded

Please sign in to comment.