fix multi select type combobox and scroll issues on mobile

This commit is contained in:
Guy Ben-Aharon
2024-08-28 22:21:03 +03:00
parent 15be8f0414
commit bb6c3419b6
13 changed files with 623 additions and 432 deletions

View File

@@ -203,8 +203,8 @@ export const ChartDBProvider: React.FC<React.PropsWithChildren> = ({
name: 'id',
type:
databaseType === DatabaseType.SQLITE
? 'integer'
: 'bigint',
? { id: 'integer', name: 'integer' }
: { id: 'bigint', name: 'bigint' },
unique: true,
nullable: false,
primaryKey: true,
@@ -514,7 +514,9 @@ export const ChartDBProvider: React.FC<React.PropsWithChildren> = ({
id: generateId(),
name: `field_${(table?.fields?.length ?? 0) + 1}`,
type:
databaseType === DatabaseType.SQLITE ? 'integer' : 'bigint',
databaseType === DatabaseType.SQLITE
? { id: 'integer', name: 'integer' }
: { id: 'bigint', name: 'bigint' },
unique: false,
nullable: true,
primaryKey: false,