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:
yyh
2026-01-22 15:12:16 +08:00
parent 11005ccb63
commit ed60a375b5
3 changed files with 15 additions and 3 deletions

View File

@ -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 => (