Files
supabase/apps/studio/components/interfaces/Database/Schemas/SchemaGraphLegend.tsx
Ivan Vasilov 308cd791a2 chore: Prep work for migrating to Tailwind v4 (#45285)
This PR preps the monorepo for a migration to Tailwind v4:
- Bump all Tailwind dependencies and libraries to the latest possible
version, while still compatible with Tailwind 3.
- Cleans up obsolete Tailwind 3 specific options and configs.
- Cleans up unused CSS files and fixes the CSS imports.
- Migrates all `important` uses in `@apply` lines to using the `!`
prefix.
- Move `typography.css` to the `config` package and import it from the
apps.
- Migrated all occurrences of `flex-grow`, `flex-shrink`,
`overflow-clip` and `overflow-ellipsis` since they're deprecated and
will be removed in Tailwind 4.
- Make the default theme object typesafe in the `ui` package.
- Migrate all `bg-opacity`, `border-opacity`, `ring-opacity` and
`divider-opacity` to the new format where they're declared as part of
the property color.
- Bump and unify all imports of `postcss` dependency.
2026-04-28 11:33:53 +02:00

36 lines
1.3 KiB
TypeScript

import { DiamondIcon, Fingerprint, Hash, Key } from 'lucide-react'
export const SchemaGraphLegend = () => {
return (
<div className="absolute bottom-0 left-0 border-t flex justify-center px-1 py-2 shadow-md bg-surface-100 w-full z-10">
<ul className="flex flex-wrap items-center justify-center gap-4">
<li className="flex items-center text-xs font-mono gap-1">
<Key size={15} strokeWidth={1.5} className="shrink-0 text-light" />
Primary key
</li>
<li className="flex items-center text-xs font-mono gap-1">
<Hash size={15} strokeWidth={1.5} className="shrink-0 text-light" />
Identity
</li>
<li className="flex items-center text-xs font-mono gap-1">
<Fingerprint size={15} strokeWidth={1.5} className="shrink-0 text-light" />
Unique
</li>
<li className="flex items-center text-xs font-mono gap-1">
<DiamondIcon size={15} strokeWidth={1.5} className="shrink-0 text-light" />
Nullable
</li>
<li className="flex items-center text-xs font-mono gap-1">
<DiamondIcon
size={15}
strokeWidth={1.5}
fill="currentColor"
className="shrink-0 text-light"
/>
Non-Nullable
</li>
</ul>
</div>
)
}