Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix versions & runtime in navbar #215

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Layout/NetworkId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const NetworkId: FC = memo(() => {

return (
<div className="pendulum-network-id">
<span>Network: </span>
<span>Block No: </span>
<svg height="5" width="5">
<circle cx="2.5" cy="2.5" r="2.5" />
</svg>
Expand Down
7 changes: 3 additions & 4 deletions src/components/Layout/Versions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ const Versions: FC<Props> = memo(({ tenantName }: Props) => {

return (
<div className="pendulum-versions">
{/* <span className="absolute right-14 top-2 text-green-300 hover:text-green-500 cursor-default rotate-6">
{indicator}
</span> */}
<p>DApp: {state.nodeName} </p>
<span className="absolute right-14 top-2 text-green-300 hover:text-green-500 cursor-default rotate-6">
{indicator}
</span>
<p>Runtime: {(state.nodeVersion && state.nodeVersion.toString()) || '0.0.0-00000000000'}</p>
</div>
);
Expand Down
4 changes: 3 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
--subtitle-collator-box: #fff;
--text-primary-disabled: rgba(88, 102, 126, 0.4);
--tag-background: rgba(78, 229, 154, 0.16); /* --primary 16% */
--network-bg: #252733;
}

[data-theme='pendulum'] {
Expand All @@ -57,6 +58,7 @@
--selected-nav-item: hsla(272, 15%, 56%, 0.1);
--text-primary-disabled: rgba(88, 102, 126, 0.4);
--tag-background: rgba(144, 126, 160, 0.16); /* --primary 16% */
--network-bg: hsla(0, 0%, 0%, 0.04);
}

body {
Expand Down Expand Up @@ -88,7 +90,7 @@ strong {
}

.pendulum-network-id {
background-color: hsla(0, 0%, 0%, 0.04);
background-color: var(--network-bg);
border-radius: 4px;
width: 160px;
margin-left: 30px;
Expand Down