@@ -27,6 +27,7 @@ import {
27
27
} from '../hooks'
28
28
import AppPublisher from '../../app/app-publisher'
29
29
import { ToastContext } from '../../base/toast'
30
+ import Divider from '../../base/divider'
30
31
import RunAndHistory from './run-and-history'
31
32
import EditingTitle from './editing-title'
32
33
import RunningTitle from './running-title'
@@ -144,15 +145,12 @@ const Header: FC = () => {
144
145
145
146
return (
146
147
< div
147
- className = 'absolute top-0 left-0 z-10 flex items-center justify-between w-full px-3 h-14'
148
- style = { {
149
- background : 'linear-gradient(180deg, #F9FAFB 0%, rgba(249, 250, 251, 0.00) 100%)' ,
150
- } }
148
+ className = 'absolute top-0 left-0 z-10 flex items-center justify-between w-full px-3 h-14 bg-mask-top2bottom-gray-50-to-transparent'
151
149
>
152
150
< div >
153
151
{
154
152
appSidebarExpand === 'collapse' && (
155
- < div className = 'text -xs font-medium text-gray-700 ' > { appDetail ?. name } </ div >
153
+ < div className = 'system -xs-regular text-text-tertiary ' > { appDetail ?. name } </ div >
156
154
)
157
155
}
158
156
{
@@ -171,7 +169,7 @@ const Header: FC = () => {
171
169
{ /* <GlobalVariableButton disabled={nodesReadOnly} /> */ }
172
170
{ isChatMode && < ChatVariableButton disabled = { nodesReadOnly } /> }
173
171
< EnvButton disabled = { nodesReadOnly } />
174
- < div className = 'w-[1px] h-3.5 bg-gray-200' > </ div >
172
+ < Divider type = 'vertical' className = ' h-3.5 mx-auto' / >
175
173
< RunAndHistory />
176
174
< Button className = 'text-components-button-secondary-text' onClick = { handleShowFeatures } >
177
175
< RiApps2AddLine className = 'w-4 h-4 mr-1 text-components-button-secondary-text' />
@@ -196,12 +194,11 @@ const Header: FC = () => {
196
194
}
197
195
{
198
196
viewHistory && (
199
- < div className = 'flex items-center' >
197
+ < div className = 'flex items-center space-x-2 ' >
200
198
< ViewHistory withText />
201
- < div className = 'mx-2 w-[1px] h-3.5 bg-gray-200' > </ div >
199
+ < Divider type = 'vertical' className = ' h-3.5 mx-auto' / >
202
200
< Button
203
201
variant = 'primary'
204
- className = 'mr-2'
205
202
onClick = { handleGoBackToEdit }
206
203
>
207
204
< ArrowNarrowLeft className = 'w-4 h-4 mr-1' />
@@ -212,14 +209,13 @@ const Header: FC = () => {
212
209
}
213
210
{
214
211
restoring && (
215
- < div className = 'flex items-center' >
212
+ < div className = 'flex items-center space-x-2 ' >
216
213
< Button className = 'text-components-button-secondary-text' onClick = { handleShowFeatures } >
217
214
< RiApps2AddLine className = 'w-4 h-4 mr-1 text-components-button-secondary-text' />
218
215
{ t ( 'workflow.common.features' ) }
219
216
</ Button >
220
- < div className = 'mx-2 w-[1px] h-3.5 bg-gray-200' > </ div >
217
+ < Divider type = 'vertical' className = ' h-3.5 mx-auto' / >
221
218
< Button
222
- className = 'mr-2'
223
219
onClick = { handleCancelRestore }
224
220
>
225
221
{ t ( 'common.operation.cancel' ) }
0 commit comments