Fix: Add parsing animations to the agent log and optimize some page styles (#9040)

### What problem does this PR solve?

Add parsing animations to the agent log and optimize some page styles
#3221

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-07-25 12:16:17 +08:00
committed by GitHub
parent 03daf4618c
commit 6aaad85cc6
6 changed files with 65 additions and 28 deletions

View File

@ -54,7 +54,7 @@ export function QueryTable({ data = [], deleteRecord, showModal }: IProps) {
{
accessorKey: 'key',
header: 'key',
meta: { cellClassName: 'max-w-16' },
meta: { cellClassName: 'max-w-30' },
cell: ({ row }) => {
const key: string = row.getValue('key');
return (
@ -72,7 +72,7 @@ export function QueryTable({ data = [], deleteRecord, showModal }: IProps) {
{
accessorKey: 'name',
header: t('flow.name'),
meta: { cellClassName: 'max-w-20' },
meta: { cellClassName: 'max-w-30' },
cell: ({ row }) => {
const name: string = row.getValue('name');
return (
@ -107,10 +107,16 @@ export function QueryTable({ data = [], deleteRecord, showModal }: IProps) {
return (
<div>
<Button variant={'ghost'} onClick={() => showModal(idx, record)}>
<Button
className="bg-transparent text-foreground hover:bg-muted-foreground hover:text-foreground"
onClick={() => showModal(idx, record)}
>
<Pencil />
</Button>
<Button variant={'ghost'} onClick={() => deleteRecord(idx)}>
<Button
className="bg-transparent text-foreground hover:bg-muted-foreground hover:text-foreground"
onClick={() => deleteRecord(idx)}
>
<Trash2 />
</Button>
</div>
@ -139,7 +145,7 @@ export function QueryTable({ data = [], deleteRecord, showModal }: IProps) {
return (
<div className="w-full">
<div className="rounded-md border">
<Table>
<Table rootClassName="rounded-md">
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
<TableRow key={headerGroup.id}>