Skip to content

Commit ba438c6

Browse files
authored
fix: fix data dictionary table overflow on smaller viewports (#4542) (#4545)
1 parent 7c5e07d commit ba438c6

File tree

1 file changed

+7
-1
lines changed
  • app/viewModelBuilders/azul/anvil-cmg/common/dataDictionaryMapper

1 file changed

+7
-1
lines changed

app/viewModelBuilders/azul/anvil-cmg/common/dataDictionaryMapper/constants.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { MarkdownCell } from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/MarkdownCell/markdownCell";
22
import { Attribute } from "@databiosphere/findable-ui/lib/common/entities";
33
import { ColumnDef, CellContext } from "@tanstack/react-table";
4+
import { BasicCell } from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/BasicCell/basicCell";
45

56
export const COLUMN_DEFS: ColumnDef<Attribute>[] = [
67
{
@@ -35,12 +36,17 @@ export const COLUMN_DEFS: ColumnDef<Attribute>[] = [
3536
},
3637
{
3738
accessorKey: "name",
39+
cell: (cellContext) =>
40+
BasicCell({
41+
TypographyProps: { noWrap: true },
42+
value: cellContext.getValue() as string,
43+
}),
3844
enableColumnFilter: false,
3945
header: "Name",
4046
meta: {
4147
width: {
4248
max: "1fr",
43-
min: "180px",
49+
min: "240px",
4450
},
4551
},
4652
},

0 commit comments

Comments
 (0)