add light theme support, underline links to block detail

This commit is contained in:
Victor Oliva
2024-11-09 13:51:54 +07:00
parent da8468a88d
commit bc80975e6b
8 changed files with 82 additions and 30 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ export const BlockPopover: FC<{ hash: string }> = ({ hash }) => {
Block
<Link
to={hash}
className="font-mono font-normal text-primary/70 hover:text-primary"
className="font-mono font-normal text-primary/70 hover:text-primary underline"
>
{hash.slice(0, 18)}…
</Link>
+1 -1
View File
@@ -266,7 +266,7 @@ const BlockLink: FC<{ hash: string }> = ({ hash }) => {
return (
<Link
className="text-primary/70 hover:text-primary align-middle inline-flex items-center gap-1"
className="text-primary/70 hover:text-primary align-middle inline-flex items-center gap-1 underline"
to={`../${hash}`}
>
{<BlockStatusIcon state={block.status} size={20} />}
+1 -1
View File
@@ -13,7 +13,7 @@ export const EventPopover: FC<{ event: EventInfo }> = ({ event }) => {
Event{" "}
<Link
to={`${event.hash}#event=${event.index}`}
className="text-primary/70 hover:text-primary"
className="text-primary/70 hover:text-primary underline"
>
{eventKey(event)}
</Link>
+1 -1
View File
@@ -2,7 +2,7 @@ import { groupBy } from "@/lib/groupBy"
import type { SystemEvent } from "@polkadot-api/observable-client"
import { state } from "@react-rxjs/core"
import { combineKeys } from "@react-rxjs/utils"
import { filter, map, takeWhile, tap } from "rxjs"
import { filter, map, takeWhile } from "rxjs"
import { blockInfo$, BlockState, recordedBlocks$ } from "./block.state"
import { MAX_LENGTH } from "./BlockTable"