style: ui style

This commit is contained in:
jialin
2024-07-02 15:03:38 +08:00
parent 6989345088
commit 49efbd1a7f
38 changed files with 336 additions and 135 deletions
@@ -39,6 +39,13 @@ const ChatFooter: React.FC<ChatFooterProps> = (props) => {
},
{ enabled: !disabled }
);
useHotkeys(
HotKeys.CREATE.join(','),
(e) => {
onNewMessage();
},
{ enabled: !disabled }
);
return (
<div className="chat-footer">
@@ -52,6 +59,7 @@ const ChatFooter: React.FC<ChatFooterProps> = (props) => {
onClick={onNewMessage}
>
{intl.formatMessage({ id: 'playground.newMessage' })}
<span className="m-l-5 opct-7">CTRL+SHIFT+ N</span>
</Button>
<Button
icon={<DeleteOutlined></DeleteOutlined>}
@@ -1,7 +1,4 @@
.chat-footer {
display: flex;
align-items: center;
padding-inline: 0 32px;
height: 100px;
// box-shadow: 0px -1px 2px 0px var(--ant-color-border);
}
+2 -1
View File
@@ -9,8 +9,9 @@
top: -14px;
right: 26px;
width: 80px;
border-radius: var(--border-radius-small);
border-radius: 8px;
text-align: center;
border: 1px solid var(--ant-color-border) !important;
:global(.ant-input-number-input) {
text-align: center !important;
+8 -5
View File
@@ -1,7 +1,10 @@
.ground-left {
display: flex;
justify-content: space-between;
flex-direction: column;
position: relative;
height: calc(100vh - 84px);
padding-bottom: 120px;
height: calc(100vh - 136px);
// padding-bottom: 120px;
padding-right: 32px;
.message-list-wrap {
@@ -10,8 +13,8 @@
}
.ground-left-footer {
position: absolute;
bottom: 20px;
width: 100%;
// position: absolute;
// bottom: 20px;
// width: 100%;
}
}
+2 -2
View File
@@ -9,8 +9,8 @@
}
.params {
// width: 465px;
padding: 20px;
padding-top: 0;
}
.divider-line {
@@ -18,7 +18,7 @@
.ant-divider {
margin: 0;
min-height: calc(100vh - 84px);
min-height: calc(100vh - 136px);
}
}
}