File tree Expand file tree Collapse file tree
src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions) Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8989 return reorderItems (columnsWithWidths , $columnsOrder );
9090 }
9191
92- return columnsWithWidths ;
92+ return columnsWithWidths .filter (
93+ (column ) => ! [' $id' , ' $createdAt' , ' $updatedAt' , ' actions' ].includes (column .id )
94+ );
9395 });
9496
9597 let resizeObserver: ResizeObserver ;
305307 // start overlay **after** the last userColumn
306308 if (staticUserColumns .length > 0 ) {
307309 const lastUserColumn = staticUserColumns [staticUserColumns .length - 1 ];
308- let lastUserCell = getById (lastUserColumn .id );
309-
310- if (! lastUserCell ) {
311- lastUserCell = headerElement ! .querySelector <HTMLElement >(
312- ` [role="cell"][data-column-id="${lastUserColumn .id }"] `
313- );
314- }
310+ const lastUserCell = getById (lastUserColumn .id );
315311
316312 if (lastUserCell ) {
317313 const lastUserRect = lastUserCell .getBoundingClientRect ();
12791275 out:fade ={{ duration : 200 }}>
12801276 </div >
12811277
1282- {@render customTooltip ({ text: ' Click to select column' , show: isHovered })}
1278+ <!-- {@render customTooltip({ text: 'Click to select column', show: isHovered })}-->
12831279 {/if }
12841280 </div >
12851281
Original file line number Diff line number Diff line change @@ -60,15 +60,15 @@ export const mockSuggestions: { total: number; columns: ColumnInput[] } = {
6060 total : 7 ,
6161 columns : [
6262 {
63- name : 'name ' ,
63+ name : 'title ' ,
6464 type : 'string' ,
6565 size : 255 ,
6666 format : null ,
6767 required : true ,
6868 formatOptions : null
6969 } ,
7070 {
71- name : 'age ' ,
71+ name : 'authorName ' ,
7272 type : 'string' ,
7373 size : 128 ,
7474 format : null ,
You can’t perform that action at this time.
0 commit comments