mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
This PR migrates the whole monorepo to use Tailwind v4: - Removed `@tailwindcss/container-queries` plugin since it's included by default in v4, - Bump all instances of Tailwind to v4. Made minimal changes to the shared config to remove non-supported features (`alpha` mentions), - Migrate all apps to be compatible with v4 configs, - Fix the `typography.css` import in 3 apps, - Add missing rules which were included by default in v3, - Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot of classes - Rename all misnamed classes according to https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all apps. --------- Co-authored-by: Jordi Enric <jordi.err@gmail.com>
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import type { LogData } from './Messages.types'
|
|
import { jsonSyntaxHighlight, SelectionDetailedTimestampRow } from './MessagesFormatters'
|
|
|
|
const LogsDivider = () => {
|
|
return (
|
|
<div className="h-px w-full bg-panel-border-interior-light in-data-[theme*=dark]:bg-panel-border-interior-dark" />
|
|
)
|
|
}
|
|
|
|
export const SelectedRealtimeMessagePanel = ({ log }: { log: LogData }) => {
|
|
return (
|
|
<>
|
|
<div className="px-8">
|
|
<span className="col-span-4 text-sm text-scale-900">Message</span>
|
|
|
|
<p className="text-wrap mt-2 overflow-x-auto whitespace-pre-wrap font-mono text-xs text-scale-1200">
|
|
{log.message}
|
|
</p>
|
|
</div>
|
|
<LogsDivider />
|
|
<div className="px-8 space-y-2">
|
|
<SelectionDetailedTimestampRow hideCopy value={log.timestamp} />
|
|
</div>
|
|
<LogsDivider />
|
|
<div className="px-8">
|
|
<h3 className="mb-4 text-sm text-foreground-lighter">Payload</h3>
|
|
<pre className="syntax-highlight overflow-x-auto text-sm">
|
|
<div
|
|
className="text-wrap"
|
|
dangerouslySetInnerHTML={{
|
|
__html: log.metadata ? jsonSyntaxHighlight(log.metadata) : '',
|
|
}}
|
|
/>
|
|
</pre>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|