Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@

const nullable = $derived(!limited ? !column.required : false);
const columnSize = $derived('size' in column ? column.size : 0);
const forceTextarea = $derived(
column.type === 'text' ||
column.type === 'mediumtext' ||
column.type === 'longtext' ||
(column.type === 'varchar' && columnSize > 255)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even short varchars sohuld have textarea.

Suggested change
(column.type === 'varchar' && columnSize > 255)
column.type === 'varchar'

);

let stringValue = $state('');

Expand Down Expand Up @@ -148,7 +154,7 @@
};
</script>

{#if columnSize >= 50 || array || isSpatialType(column)}
{#if forceTextarea || columnSize >= 50 || array || isSpatialType(column)}
<InputTextarea
{id}
{label}
Expand Down