From 4824b186aae66ab655ad1d6b996ede8f5d923eb4 Mon Sep 17 00:00:00 2001 From: ArcherDilunaire Date: Tue, 5 Nov 2024 13:44:58 +0200 Subject: [PATCH] style changes --- index.html | 30 ++++++++++++------- public/papi_logo-dark.svg | 1 + src/App.tsx | 21 ++++++------- .../LookupTypeEdit/BinaryDisplay.tsx | 2 +- .../LookupTypeEdit/LookupTypeEdit.tsx | 2 +- src/codec-components/common/ListItem.tsx | 2 +- src/codec-components/common/Markers.tsx | 24 ++++++--------- src/components/ActionButton.tsx | 4 +-- src/components/ButtonGroup.tsx | 10 +++---- src/components/Select.tsx | 2 +- src/index.css | 19 ++++++++++++ src/pages/Extrinsics/EditMode.tsx | 2 +- src/pages/Extrinsics/Extrinsics.tsx | 3 +- src/pages/Extrinsics/JsonMode.tsx | 2 +- src/pages/Header.tsx | 21 +++++++------ 15 files changed, 84 insertions(+), 61 deletions(-) create mode 100644 public/papi_logo-dark.svg diff --git a/index.html b/index.html index ea96370..39f7ce8 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,21 @@ - - - - - PAPI Console - - -
- - - + + + + + + PAPI Console + + + + + + +
+ + + + \ No newline at end of file diff --git a/public/papi_logo-dark.svg b/public/papi_logo-dark.svg new file mode 100644 index 0000000..dba3451 --- /dev/null +++ b/public/papi_logo-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 28a0928..330abdb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,16 +12,17 @@ export default function App() { return (
- - - } /> - } /> - } /> - } /> - } /> - } /> - } /> - +
+ + } /> + } /> + } /> + } /> + } /> + } /> + } /> + +
) diff --git a/src/codec-components/LookupTypeEdit/BinaryDisplay.tsx b/src/codec-components/LookupTypeEdit/BinaryDisplay.tsx index 0b3fc29..d4f14aa 100644 --- a/src/codec-components/LookupTypeEdit/BinaryDisplay.tsx +++ b/src/codec-components/LookupTypeEdit/BinaryDisplay.tsx @@ -37,7 +37,7 @@ export const BinaryDisplay: FC< return (
-
+
)}
-
+
diff --git a/src/codec-components/common/ListItem.tsx b/src/codec-components/common/ListItem.tsx index 3009094..692a16f 100644 --- a/src/codec-components/common/ListItem.tsx +++ b/src/codec-components/common/ListItem.tsx @@ -76,7 +76,7 @@ export const ListItem: React.FC<{ {inline ? null : (
diff --git a/src/codec-components/common/Markers.tsx b/src/codec-components/common/Markers.tsx index b0165cd..6a76124 100644 --- a/src/codec-components/common/Markers.tsx +++ b/src/codec-components/common/Markers.tsx @@ -21,7 +21,7 @@ export const Marker: FC<{ id: string[] }> = ({ id }) => { const ctx = useContext(MarkersContext) const ref = useRefEffect( (element) => { - if (!ctx) return () => {} + if (!ctx) return () => { } ctx.observer.observe(element) return () => { ctx.onMarkerRemoved(id) @@ -108,8 +108,8 @@ export const VisibleWindow = () => { const transitionEnabled = useWindowTransition(isAllVisible) if (!ctx) return null - const fade = twMerge( - "absolute left-0 right-0 ease-linear bg-gray-100 bg-opacity-10 backdrop-blur-[0.4px]", + const window = twMerge( + "absolute left-0 right-0 ease-linear bg-polkadot-900 z-[-1]", transitionEnabled && "transition-all", ) @@ -117,24 +117,18 @@ export const VisibleWindow = () => {
-
+ > +
) } diff --git a/src/components/ActionButton.tsx b/src/components/ActionButton.tsx index bf7951e..c6e9676 100644 --- a/src/components/ActionButton.tsx +++ b/src/components/ActionButton.tsx @@ -7,8 +7,8 @@ export const ActionButton: FC> = (