Skip to content

Commit

Permalink
feat: Optimize style
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryFan626 committed Aug 6, 2023
1 parent 8ed8429 commit 9c2cad5
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ jobs:
cd chat2db-client/versions/99.0.${{ github.run_id }}/static/ && zip -r chat2db-server-start.zip ./
cp -r chat2db-server-start.zip ../../../../oss_temp_file
# 准备要需要的数据 MacOS arm64
- name: Prepare upload for MacOS arm64
if: ${{ runner.os == 'macOS' && matrix.arch == 'arm64' }}
Expand All @@ -250,7 +249,7 @@ jobs:
if: runner.os == 'Linux'
run: |
mkdir oss_temp_file
cp -r chat2db-client/release/*.dmg ./oss_temp_file
cp -r chat2db-client/release/*.AppImage ./oss_temp_file
# 把文件上传到OSS 方便下载
- name: Set up oss utils
Expand Down
5 changes: 2 additions & 3 deletions chat2db-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@
"maintainer": "Chat2DB, [email protected]",
"category": "Network;",
"target": [
"AppImage",
"deb"
"AppImage"
]
}
}
}
}
14 changes: 11 additions & 3 deletions chat2db-client/src/assets/font/iconfont.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 3633546 */
src: url('iconfont.woff2?t=1689773424663') format('woff2'),
url('iconfont.woff?t=1689773424663') format('woff'),
url('iconfont.ttf?t=1689773424663') format('truetype');
src: url('iconfont.woff2?t=1691316217339') format('woff2'),
url('iconfont.woff?t=1691316217339') format('woff'),
url('iconfont.ttf?t=1691316217339') format('truetype');
}

.iconfont {
Expand All @@ -13,6 +13,14 @@
-moz-osx-font-smoothing: grayscale;
}

.icon-huiche:before {
content: "\e643";
}

.icon-quesheng:before {
content: "\e642";
}

.icon-jinrujiantou:before {
content: "\e88e";
}
Expand Down
Binary file modified chat2db-client/src/assets/font/iconfont.ttf
Binary file not shown.
Binary file modified chat2db-client/src/assets/font/iconfont.woff
Binary file not shown.
Binary file modified chat2db-client/src/assets/font/iconfont.woff2
Binary file not shown.
16 changes: 4 additions & 12 deletions chat2db-client/src/components/Console/ChatInput/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,14 @@
align-items: center;
}

.enterIcon {
.enter {
width: 32px;
height: 24px;
padding: 0;
margin-right: 16px;
}
.enterIcon:after {
display: block;
content: '\21B5';
font-size: 12px;
// color: var(--color-primary);
// transform: translateY(-50%);

line-height: 100%;
text-align: center;
margin-top: 2px;
.enterIcon {
font-size: 12px;
}
}

.tableSelectBlock {
Expand Down
6 changes: 4 additions & 2 deletions chat2db-client/src/components/Console/ChatInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ function ChatInput(props: IProps) {
<div className={styles.suffixBlock}>
<Button
type="primary"
className={styles.enterIcon}
className={styles.enter}
onClick={() => {
if (value) {
props.onPressEnter && props.onPressEnter(value);
}
}}
/>
>
<Iconfont code="&#xe643;" className={styles.enterIcon} />
</Button>
<div className={styles.tableSelectBlock}>
<Popover content={renderSelectTable()} placement="bottom">
<Iconfont code="&#xe618;" />
Expand Down

0 comments on commit 9c2cad5

Please sign in to comment.