fix: enforce semantic contrast across admin
Local Build and Deploy / deploy (push) Successful in 44s
Local Build and Deploy / deploy (push) Successful in 44s
This commit is contained in:
1 parent
45c8178cfa
commit
f0b4bc1630
86 files changed
+438
-338
No files matched your search
@@ -32,7 +32,7 @@ type PublicRow = {
|
||||
function YesNo({ on }: { on: boolean }) {
|
||||
return (
|
||||
<span
|
||||
className={`inline-block text-[0.72rem] font-bold px-2 py-0.5 rounded-full ${on ? "bg-green-600/20 text-[var(--color-text)]" : "bg-red-500/22 text-[var(--color-text)]"}`}
|
||||
className={`inline-block text-[0.72rem] font-bold px-2 py-0.5 rounded-full ${on ? "bg-[var(--color-success-subtle)] text-[var(--color-text)]" : "bg-[var(--color-error-subtle)] text-[var(--color-text)]"}`}
|
||||
>
|
||||
{on ? "Yes" : "No"}
|
||||
</span>
|
||||
@@ -134,7 +134,7 @@ export default async function AdminNavigation() {
|
||||
{/* ── navigator_flatcats ───────────────────────────────── */}
|
||||
<section className="mt-6">
|
||||
<h2 className="admin-section-title">{t("flatCategories")}</h2>
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400">
|
||||
<p className="text-xs theme-text-muted dark:theme-text-muted">
|
||||
<code>navigator_flatcats</code> · {flatcats.length} {t("rows")}
|
||||
</p>
|
||||
{flatcats.length === 0 ? (
|
||||
@@ -158,9 +158,9 @@ export default async function AdminNavigation() {
|
||||
<tbody>
|
||||
{flatcats.map((c) => (
|
||||
<tr key={c.id}>
|
||||
<td className="text-sm text-gray-500 dark:text-gray-400 whitespace-nowrap">{c.id}</td>
|
||||
<td className="text-sm theme-text-muted dark:theme-text-muted whitespace-nowrap">{c.id}</td>
|
||||
<td>{c.caption || "—"}</td>
|
||||
<td className="text-sm text-gray-500 dark:text-gray-400 whitespace-nowrap">
|
||||
<td className="text-sm theme-text-muted dark:theme-text-muted whitespace-nowrap">
|
||||
{c.captionSave || "—"}
|
||||
</td>
|
||||
<td>{c.minRank}</td>
|
||||
@@ -184,7 +184,7 @@ export default async function AdminNavigation() {
|
||||
{/* ── navigator_publics ────────────────────────────────── */}
|
||||
<section className="mt-6">
|
||||
<h2 className="admin-section-title">{t("publicRooms")}</h2>
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400">
|
||||
<p className="text-xs theme-text-muted dark:theme-text-muted">
|
||||
<code>navigator_publics</code> · {publics.length} {t("rows")}
|
||||
</p>
|
||||
{publics.length === 0 ? (
|
||||
@@ -204,11 +204,11 @@ export default async function AdminNavigation() {
|
||||
<tr key={`${p.public_cat_id}-${p.room_id}-${i}`}>
|
||||
<td>
|
||||
{catNameById.get(p.public_cat_id) ?? "—"}{" "}
|
||||
<span className="text-sm text-gray-500 dark:text-gray-400">#{p.public_cat_id}</span>
|
||||
<span className="text-sm theme-text-muted dark:theme-text-muted">#{p.public_cat_id}</span>
|
||||
</td>
|
||||
<td>
|
||||
{roomNameById.get(p.room_id) || t("unnamed")}{" "}
|
||||
<span className="text-sm text-gray-500 dark:text-gray-400">#{p.room_id}</span>
|
||||
<span className="text-sm theme-text-muted dark:theme-text-muted">#{p.room_id}</span>
|
||||
</td>
|
||||
<td>
|
||||
<YesNo on={p.visible === "1"} />
|
||||
|
||||
Reference in new issue
Block a user