feat(ui): 漫游导航样式修改

This commit is contained in:
肖应宇 2026-04-21 09:22:48 +08:00
parent cad86218a7
commit 08b74314c4
2 changed files with 83 additions and 28 deletions

View File

@ -734,6 +734,7 @@ export function InputBox({
open={isInputToolsTourOpen} open={isInputToolsTourOpen}
onClose={closeInputToolsTour} onClose={closeInputToolsTour}
onFinish={finishInputToolsTour} onFinish={finishInputToolsTour}
rootClassName="workspace-input-tools-tour"
gap={ gap={
{ offset: 3 , radius:10 } { offset: 3 , radius:10 }
} }
@ -1162,7 +1163,7 @@ function SuggestionList({
); );
return ( return (
<Suggestions <Suggestions
className="min-h-16 w-fit items-start" className="w-fit items-start"
data-testid="welcome-suggestions" data-testid="welcome-suggestions"
> >
{promptSuggestions.map((suggestion) => ( {promptSuggestions.map((suggestion) => (

View File

@ -141,6 +141,7 @@
--animate-wave: wave 0.6s ease-in-out 2; --animate-wave: wave 0.6s ease-in-out 2;
@keyframes wave { @keyframes wave {
0%, 0%,
100% { 100% {
transform: rotate(0deg); transform: rotate(0deg);
@ -368,19 +369,17 @@
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
background: linear-gradient( background: linear-gradient(45deg,
45deg, #fb0094,
#fb0094, #0000ff,
#0000ff, #00ff00,
#00ff00, #ffff00,
#ffff00, #ff0000,
#ff0000, #fb0094,
#fb0094, #0000ff,
#0000ff, #00ff00,
#00ff00, #ffff00,
#ffff00, #ff0000);
#ff0000
);
background-size: 400%; background-size: 400%;
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -534,15 +533,11 @@ code {
} }
/* 表格四角圆角:由四个角单元格承担视觉圆角 */ /* 表格四角圆角:由四个角单元格承担视觉圆角 */
[data-streamdown="table-header"] [data-streamdown="table-header"] tr:first-child>[data-streamdown="table-header-cell"]:first-child {
tr:first-child
> [data-streamdown="table-header-cell"]:first-child {
border-top-left-radius: 5px; border-top-left-radius: 5px;
} }
[data-streamdown="table-header"] [data-streamdown="table-header"] tr:first-child>[data-streamdown="table-header-cell"]:last-child {
tr:first-child
> [data-streamdown="table-header-cell"]:last-child {
border-top-right-radius: 5px; border-top-right-radius: 5px;
} }
@ -556,15 +551,11 @@ code {
border-bottom: 1px solid black; border-bottom: 1px solid black;
} */ } */
[data-streamdown="table-body"] [data-streamdown="table-body"] tr:last-child>[data-streamdown="table-cell"]:first-child {
tr:last-child
> [data-streamdown="table-cell"]:first-child {
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
} }
[data-streamdown="table-body"] [data-streamdown="table-body"] tr:last-child>[data-streamdown="table-cell"]:last-child {
tr:last-child
> [data-streamdown="table-cell"]:last-child {
border-bottom-right-radius: 5px; border-bottom-right-radius: 5px;
} }
@ -573,7 +564,7 @@ code {
padding-bottom: calc(20px * var(--zoom-scale)); padding-bottom: calc(20px * var(--zoom-scale));
} }
[data-streamdown="table-row"] > [data-streamdown="table-cell"] { [data-streamdown="table-row"]>[data-streamdown="table-cell"] {
line-height: calc(42px * var(--zoom-scale)); line-height: calc(42px * var(--zoom-scale));
vertical-align: top; vertical-align: top;
text-align: center; text-align: center;
@ -616,6 +607,69 @@ code {
height: 100% !important; height: 100% !important;
} }
.ticker-char{ .ticker-char {
overflow: hidden; overflow: hidden;
} }
.ant-tour-panel {
border-radius: 10px;
border: 1px solid #000000;
font-family:
"Microsoft YaHei",
"PingFang SC",
"Hiragino Sans GB",
"Noto Sans CJK SC",
"Segoe UI",
sans-serif;
}
.ant-tour .ant-tour-arrow:before {
background: #000;
}
.workspace-input-tools-tour.ant-tour .ant-tour-section .ant-tour-close {
top: 20px;
}
.workspace-input-tools-tour .ant-tour-next-btn.ant-btn-primary,
.workspace-input-tools-tour .ant-tour-next-btn.ant-btn-primary:hover,
.workspace-input-tools-tour .ant-tour-next-btn.ant-btn-primary:focus,
.workspace-input-tools-tour .ant-tour-next-btn.ant-btn-primary:active {
height: 28px;
width: 80px;
font-size: 12px;
background: #150055 !important;
border-color: #150055 !important;
color: #fff !important;
}
.workspace-input-tools-tour .ant-tour-prev-btn.ant-btn-default,
.workspace-input-tools-tour .ant-tour-prev-btn.ant-btn-default:hover,
.workspace-input-tools-tour .ant-tour-prev-btn.ant-btn-default:focus,
.workspace-input-tools-tour .ant-tour-prev-btn.ant-btn-default:active {
/* background: #8d44ee !important; */
height: 28px;
width: 80px;
font-size: 12px;
border-color: #150055 !important;
color: #000 !important;
}
.workspace-input-tools-tour.ant-tour .ant-tour-section .ant-tour-header {
padding: 20px 20px 15px !important;
}
.workspace-input-tools-tour.ant-tour .ant-tour-section .ant-tour-description {
padding: 0 20px !important;
font-size: 13px;
}
.ant-tour-footer {
padding: 25px 20px 20px !important;
min-width: 300px;
}
.ant-tour .ant-tour-section .ant-tour-footer .ant-tour-indicators .ant-tour-indicator-active {
background: #150055 !important;
}