Skip to content

Commit

Permalink
fix: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 committed Apr 11, 2022
1 parent 69e939f commit e0a39b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions app/pages/Console/OutputBox/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@
border-radius: 6px;
padding: 11px 14px;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
font-family: Roboto-Regular, sans-serif;
font-weight: 500;
font-size: 18px;
color: #27AE60;
}
.gqlValue {
overflow: hidden;
text-overflow: ellipsis;
white-space: pre-wrap;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.errorInfo {
background-color: #fff2f0;
color: #ff4d4f;
Expand Down
2 changes: 1 addition & 1 deletion app/pages/Console/OutputBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const OutputBox = (props: IProps) => {
return <div className={styles.outputBox}>
<div className={styles.outputHeader}>
<p className={cls(styles.gql, { [styles.errorInfo]: code !== 0 })} onClick={() => onHistoryItem(gql)}>
$ {gql}
<span className={styles.gqlValue}>$ {gql}</span>
</p>
<div className={styles.outputOperations}>
{!isFavorited ? <Tooltip title={intl.get('console.addToFavorites')} placement="top">
Expand Down
2 changes: 1 addition & 1 deletion app/pages/Schema/SchemaConfig/List/CommonLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const CommonLayout = (props: IProps) => {
<Icon className="studioAddBtnIcon" type="icon-studio-btn-add" />{intl.get('common.create')}
</Link>
</Button>
<Search onSearch={onSearch} type={intl.get('common.edge').toLowerCase()} />
<Search onSearch={onSearch} type={type.toLowerCase()} />
</div>
{children}
<Table
Expand Down

0 comments on commit e0a39b4

Please sign in to comment.