Quellcode durchsuchen

refactor: improve loading animation and debug panel styles (#24075)

tags/1.8.0
Wu Tianwei vor 2 Monaten
Ursprung
Commit
218e247fd2
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden

+ 2
- 1
web/app/components/base/chat/chat/loading-anim/index.tsx Datei anzeigen

import type { FC } from 'react' import type { FC } from 'react'
import React from 'react' import React from 'react'
import s from './style.module.css' import s from './style.module.css'
import cn from '@/utils/classnames'


export type ILoadingAnimProps = { export type ILoadingAnimProps = {
type: 'text' | 'avatar' type: 'text' | 'avatar'
type, type,
}) => { }) => {
return ( return (
<div className={`${s['dot-flashing']} ${s[type]}`}></div>
<div className={cn(s['dot-flashing'], s[type])} />
) )
} }
export default React.memo(LoadingAnim) export default React.memo(LoadingAnim)

+ 1
- 1
web/app/components/workflow/panel/debug-and-preview/index.tsx Datei anzeigen

<div <div
ref={containerRef} ref={containerRef}
className={cn( className={cn(
'relative flex h-full flex-col rounded-l-2xl border border-r-0 border-components-panel-border bg-components-panel-bg shadow-xl',
'relative flex h-full flex-col rounded-l-2xl border border-r-0 border-components-panel-border bg-chatbot-bg shadow-xl',
)} )}
style={{ width: `${panelWidth}px` }} style={{ width: `${panelWidth}px` }}
> >

Laden…
Abbrechen
Speichern