mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: views broken on userColumns.
update: hide tooltip [temporarily].
This commit is contained in:
+5
-9
@@ -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>
|
||||
|
||||
|
||||
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user