mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 02:09:17 +00:00
Add tailwind colors to all data types and display them
This commit is contained in:
parent
0b9137ad4b
commit
93869d2a4e
@ -373,11 +373,12 @@ export default function Table(props) {
|
|||||||
) : settings.showDataTypes ? (
|
) : settings.showDataTypes ? (
|
||||||
<div className="flex gap-1 items-center">
|
<div className="flex gap-1 items-center">
|
||||||
{fieldData.primary && <IconKeyStroked />}
|
{fieldData.primary && <IconKeyStroked />}
|
||||||
{!fieldData.notNull && <span style={{fontFamily: 'monospace'}}>NULL</span>}
|
{!fieldData.notNull && <span className="font-mono">?</span>}
|
||||||
<span style={{
|
<span
|
||||||
color: dbToTypes[database][fieldData.type].color,
|
className={
|
||||||
fontFamily: 'monospace'
|
"font-mono " + dbToTypes[database][fieldData.type].color
|
||||||
}}>
|
}
|
||||||
|
>
|
||||||
{fieldData.type +
|
{fieldData.type +
|
||||||
((dbToTypes[database][fieldData.type].isSized ||
|
((dbToTypes[database][fieldData.type].isSized ||
|
||||||
dbToTypes[database][fieldData.type].hasPrecision) &&
|
dbToTypes[database][fieldData.type].hasPrecision) &&
|
||||||
|
@ -1,6 +1,18 @@
|
|||||||
export const defaultBlue = "#175e7a";
|
export const defaultBlue = "#175e7a";
|
||||||
export const defaultNoteTheme = "#fcf7ac";
|
export const defaultNoteTheme = "#fcf7ac";
|
||||||
export const darkBgTheme = "#16161A";
|
export const darkBgTheme = "#16161A";
|
||||||
|
export const stringColor = "text-orange-500";
|
||||||
|
export const intColor = "text-yellow-500";
|
||||||
|
export const decimalColor = "text-lime-500";
|
||||||
|
export const booleanColor = "text-violet-500";
|
||||||
|
export const binaryColor = "text-emerald-500";
|
||||||
|
export const enumSetColor = "text-sky-500";
|
||||||
|
export const documentColor = "text-indigo-500";
|
||||||
|
export const networkIdColor = "text-rose-500";
|
||||||
|
export const geometricColor = "text-fuchsia-500";
|
||||||
|
export const vectorColor = "text-slate-500";
|
||||||
|
export const otherColor = "text-zinc-500";
|
||||||
|
export const dateColor = "text-cyan-500";
|
||||||
export const tableHeaderHeight = 50;
|
export const tableHeaderHeight = 50;
|
||||||
export const tableWidth = 220;
|
export const tableWidth = 220;
|
||||||
export const tableFieldHeight = 36;
|
export const tableFieldHeight = 36;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user