Skip to content

Commit

Permalink
fix: long space name display (#666)
Browse files Browse the repository at this point in the history
* fix: long space name display

* fix: runNgql params
  • Loading branch information
huaxiabuluo authored Nov 8, 2023
1 parent c403022 commit 41d0e93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/components/Breadcrumb/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@
-webkit-box-orient: vertical;
text-align: left;
word-break: break-all;
line-height: 1.2;
}
a {
&:hover {
background-color: transparent;
}
align-items: center;
display: inline-flex;
white-space: nowrap;
}
}
.arrowIcon > svg {
Expand Down
2 changes: 1 addition & 1 deletion app/pages/Import/TaskList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const TaskList = () => {
<Select
showSearch
allowClear
style={{ minWidth: 200 }}
style={{ minWidth: 200, maxWidth: 600 }}
value={filter.space}
placeholder={intl.get('console.selectSpace')}
onChange={(space) => getData({ space, page: 1 })}
Expand Down
4 changes: 2 additions & 2 deletions app/utils/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class NgqlRunner {
this.socket?.readyState === WebSocket.OPEN && this.socket.send(WsHeartbeatReq);
};

runNgql = async ({ gql, space }: { gql: string; space?: string }, config: Recordable = {}): Promise<NgqlRes> => {
runNgql = async (params: { gql: string; space?: string }, config: Recordable = {}): Promise<NgqlRes> => {
if (!this.socket || this.socket.readyState !== WebSocket.OPEN) {
const flag = await this.reConnect();
if (!flag) {
Expand All @@ -279,7 +279,7 @@ export class NgqlRunner {
resolve,
reject,
product: this.product,
content: { gql, space },
content: params,
config,
msgType: MsgType.NGQL,
});
Expand Down

0 comments on commit 41d0e93

Please sign in to comment.