File tree 3 files changed +208
-3
lines changed
3 files changed +208
-3
lines changed Original file line number Diff line number Diff line change @@ -373,8 +373,12 @@ export default function Table(props) {
373
373
) : settings . showDataTypes ? (
374
374
< div className = "flex gap-1 items-center" >
375
375
{ fieldData . primary && < IconKeyStroked /> }
376
- { ! fieldData . notNull && < span > ?</ span > }
377
- < span >
376
+ { ! fieldData . notNull && < span className = "font-mono" > ?</ span > }
377
+ < span
378
+ className = {
379
+ "font-mono " + dbToTypes [ database ] [ fieldData . type ] . color
380
+ }
381
+ >
378
382
{ fieldData . type +
379
383
( ( dbToTypes [ database ] [ fieldData . type ] . isSized ||
380
384
dbToTypes [ database ] [ fieldData . type ] . hasPrecision ) &&
Original file line number Diff line number Diff line change 1
1
export const defaultBlue = "#175e7a" ;
2
2
export const defaultNoteTheme = "#fcf7ac" ;
3
3
export const darkBgTheme = "#16161A" ;
4
+ export const stringColor = "text-orange-500" ;
5
+ export const intColor = "text-yellow-500" ;
6
+ export const decimalColor = "text-lime-500" ;
7
+ export const booleanColor = "text-violet-500" ;
8
+ export const binaryColor = "text-emerald-500" ;
9
+ export const enumSetColor = "text-sky-500" ;
10
+ export const documentColor = "text-indigo-500" ;
11
+ export const networkIdColor = "text-rose-500" ;
12
+ export const geometricColor = "text-fuchsia-500" ;
13
+ export const vectorColor = "text-slate-500" ;
14
+ export const otherColor = "text-zinc-500" ;
15
+ export const dateColor = "text-cyan-500" ;
4
16
export const tableHeaderHeight = 50 ;
5
17
export const tableWidth = 220 ;
6
18
export const tableFieldHeight = 36 ;
You can’t perform that action at this time.
0 commit comments