Skip to content

Commit 90286fd

Browse files
Happy4Gameewqazxc
authored andcommitted
Add colors to data types in Popover (details of column) (drawdb-io#450)
1 parent 8743901 commit 90286fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/EditorCanvas/Table.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ export default function Table(props) {
210210
style={{ direction: "ltr" }}
211211
>
212212
<p className="me-4 font-bold">{e.name}</p>
213-
<p className="ms-4">
213+
<p
214+
className={
215+
"ms-4 font-mono " + dbToTypes[database][e.type].color
216+
}
217+
>
214218
{e.type +
215219
((dbToTypes[database][e.type].isSized ||
216220
dbToTypes[database][e.type].hasPrecision) &&

0 commit comments

Comments
 (0)