mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
fix: improve sqlite file preview layout and single table handling
- Add min-w-0 to flex containers for proper text truncation - Use w-max on table to ensure columns don't collapse - Simplify table selector when only one table exists (remove dropdown)
This commit is contained in:
@ -63,7 +63,7 @@ const DataTable: FC<DataTableProps> = ({ columns, values }) => {
|
||||
}, [keyColumnIndex, t, values])
|
||||
|
||||
return (
|
||||
<table className="min-w-full table-auto border-separate border-spacing-0">
|
||||
<table className="w-max min-w-full table-auto border-separate border-spacing-0">
|
||||
<thead className="sticky top-0 z-10 text-text-secondary">
|
||||
<tr>
|
||||
{columns.map(column => (
|
||||
|
||||
Reference in New Issue
Block a user