From 1120b710a6d5ac7f34f9ef4664ac822f37857cf9 Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Wed, 23 Jul 2025 15:33:56 +0300 Subject: [PATCH] simple mobile screen adaptiveness added Signed-off-by: Uncle Fatso --- package.json | 2 +- src/components/ChainSelect.tsx | 8 ++-- src/components/Header.tsx | 4 +- src/containers/AddressBook.tsx | 27 +++++++------ src/containers/App.tsx | 2 +- src/containers/HealthCheck.tsx | 39 +++++++++--------- src/containers/Transactions.tsx | 71 +++++++++++++++++---------------- 7 files changed, 81 insertions(+), 72 deletions(-) diff --git a/package.json b/package.json index 45c0b96..34866ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ghost-lite", - "version": "0.0.18", + "version": "0.0.19", "description": "Web application for Ghost and Casper chain.", "author": "Uncle f4ts0 ", "maintainers": [ diff --git a/src/components/ChainSelect.tsx b/src/components/ChainSelect.tsx index 95f0055..ea768c4 100644 --- a/src/components/ChainSelect.tsx +++ b/src/components/ChainSelect.tsx @@ -69,7 +69,7 @@ export const ChainSelect = () => { const api = select.connect(state, send, normalizeProps) return ( -
+
{state.context.value[0] && ( isConnected - ?
Connected
- :
Connecting...
+ ?
Connected
+ :
Connecting...
)}
) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index d6ad343..ab74074 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -19,8 +19,8 @@ export const Header = () => { return ( -
-

+
+

{currentPath}

diff --git a/src/containers/AddressBook.tsx b/src/containers/AddressBook.tsx index d60c102..745eebd 100644 --- a/src/containers/AddressBook.tsx +++ b/src/containers/AddressBook.tsx @@ -28,7 +28,7 @@ const AddressRecord: React.FC = ({ name, address, removeReco return ( -
+
{name}
@@ -36,22 +36,22 @@ const AddressRecord: React.FC = ({ name, address, removeReco @@ -581,17 +583,18 @@ export const Transactions = () => { {transactionHistory.map((props: TransactionHistory) => ( -
+
- + + @@ -613,28 +616,28 @@ export const Transactions = () => {
-
+
Tx hash:
-
+
Block hash:
-
+
Calldata:
@@ -662,23 +665,23 @@ export const Transactions = () => { )} {activeTab === "settings" && (
-
- Max lifetime: -
+
+ Max lifetime: +
{ const newValue = +e.target.value if (newValue) setHistoryLifetimeDuration(newValue) }} - className="w-[350px]" + className="sm:w-[350px] w-full" /> {convertedTimestamp({ timestamp: historyLifetimeDuration})}
-
+
Max records: { const newValue = +e.target.value if (newValue) setHistoryMaxRecords(newValue) }} - className="w-[350px]" + className="sm:w-[350px] w-full" />
-
+
Default amount: { setDefaultTransactAmount(e.target.value) setAmount(e.target.value) }} - className="w-[350px]" + className="sm:w-[350px] w-full" placeholder="Amount will be empty" />