fix: views broken on userColumns.

update: hide tooltip [temporarily].
This commit is contained in:
Darshan
2025-10-29 16:13:42 +05:30
parent 1fa62ad73f
commit ae9ac4e733
2 changed files with 7 additions and 11 deletions
@@ -89,7 +89,9 @@
return reorderItems(columnsWithWidths, $columnsOrder);
}
return columnsWithWidths;
return columnsWithWidths.filter(
(column) => !['$id', '$createdAt', '$updatedAt', 'actions'].includes(column.id)
);
});
let resizeObserver: ResizeObserver;
@@ -305,13 +307,7 @@
// start overlay **after** the last userColumn
if (staticUserColumns.length > 0) {
const lastUserColumn = staticUserColumns[staticUserColumns.length - 1];
let lastUserCell = getById(lastUserColumn.id);
if (!lastUserCell) {
lastUserCell = headerElement!.querySelector<HTMLElement>(
`[role="cell"][data-column-id="${lastUserColumn.id}"]`
);
}
const lastUserCell = getById(lastUserColumn.id);
if (lastUserCell) {
const lastUserRect = lastUserCell.getBoundingClientRect();
@@ -1279,7 +1275,7 @@
out:fade={{ duration: 200 }}>
</div>
{@render customTooltip({ text: 'Click to select column', show: isHovered })}
<!--{@render customTooltip({ text: 'Click to select column', show: isHovered })}-->
{/if}
</div>
@@ -60,7 +60,7 @@ export const mockSuggestions: { total: number; columns: ColumnInput[] } = {
total: 7,
columns: [
{
name: 'name',
name: 'title',
type: 'string',
size: 255,
format: null,
@@ -68,7 +68,7 @@ export const mockSuggestions: { total: number; columns: ColumnInput[] } = {
formatOptions: null
},
{
name: 'age',
name: 'authorName',
type: 'string',
size: 128,
format: null,