Skip to content

Commit

Permalink
Merge pull request #221 from apecloud/feat/chat
Browse files Browse the repository at this point in the history
Feat/chat
  • Loading branch information
zhouxiny1 authored Mar 14, 2024
2 parents c87661e + f11f87a commit 922d51c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/pages/chatInput.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@
animation: typing 1s linear infinite;
}
}
.kubechat {
position: fixed;
right: -25px;
bottom: -25px;
z-index: 10000;
transition: 0.3s;
display: none;
&.kubechat-ready {
display: block;
}
&:hover,
&.kubechat-open {
right: 0;
bottom: 0;
}
}
}

@keyframes typing {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/chatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const TypeWriterInput = () => {
className={classNames({
[styles.kubechat]: true,
[styles.kubechatOpen]: open,
[styles.kubechatReady]: chatReady
[styles.kubechatReady]: chatReady,
})}
>
<KubeChat
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
text-align: center;
padding-top: 50px;
.text {
margin-top: 0;
margin-left: 0px;
h1 {
font-size: 42px;
Expand Down

0 comments on commit 922d51c

Please sign in to comment.