diff --git a/packages/web/src/designer/ColumnLine.svelte b/packages/web/src/designer/ColumnLine.svelte index 26065169d..09e2ca5e7 100644 --- a/packages/web/src/designer/ColumnLine.svelte +++ b/packages/web/src/designer/ColumnLine.svelte @@ -195,12 +195,12 @@ {#if designer?.style?.showNullability || designer?.style?.showDataType}
{#if designer?.style?.showDataType && column?.dataType} -
+
{(column?.displayedDataType || column?.dataType).toLowerCase()}
{/if} {#if designer?.style?.showNullability} -
+
{column?.notNull ? 'NOT NULL' : 'NULL'}
{/if} @@ -238,4 +238,12 @@ background: var(--theme-bg-2); color: var(--theme-font-hover); } + + .nullability { + color: var(--theme-font-4); + } + + .data-type { + color: var(--theme-font-4); + } diff --git a/packages/web/src/designer/DiagramSettings.svelte b/packages/web/src/designer/DiagramSettings.svelte index f67e3c5e4..5cc8016b8 100644 --- a/packages/web/src/designer/DiagramSettings.svelte +++ b/packages/web/src/designer/DiagramSettings.svelte @@ -14,6 +14,7 @@ defaultValue="" name="filterColumns" label="Show columns" + data-testid="DiagramSettings_filterColumns" isNative options={[ { @@ -36,33 +37,13 @@ value: 'keysAndNotNull', label: 'Keys And Not Null', }, - - // { - // text: 'All', - // onClick: changeStyleFunc('filterColumns', ''), - // }, - // { - // text: 'Primary Key', - // onClick: changeStyleFunc('filterColumns', 'primaryKey'), - // }, - // { - // text: 'All Keys', - // onClick: changeStyleFunc('filterColumns', 'allKeys'), - // }, - // { - // text: 'Not Null', - // onClick: changeStyleFunc('filterColumns', 'notNull'), - // }, - // { - // text: 'Keys And Not Null', - // onClick: changeStyleFunc('filterColumns', 'keysAndNotNull'), - // }, ]} /> - - + +