mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 00:46:52 +08:00
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:
@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user