From ac40ea46f7f4475e1f5bc29b5ce8b8589e9c00ee Mon Sep 17 00:00:00 2001 From: ae_atrofimov Date: Mon, 1 Jul 2024 15:14:51 +0200 Subject: [PATCH] fix(docs): act-1451 - fixes for drawer position --- .../ModalDrawer/styles.module.css | 19 ++++++++++++------ .../ParserOpenRPC/global.module.css | 20 +++++++++++++------ src/components/ParserOpenRPC/index.tsx | 20 ++++++++++--------- src/css/custom.css | 5 +++++ wallet/reference/new-reference.mdx | 2 +- 5 files changed, 44 insertions(+), 22 deletions(-) diff --git a/src/components/ParserOpenRPC/ModalDrawer/styles.module.css b/src/components/ParserOpenRPC/ModalDrawer/styles.module.css index 3ae7051762..faf662cc29 100644 --- a/src/components/ParserOpenRPC/ModalDrawer/styles.module.css +++ b/src/components/ParserOpenRPC/ModalDrawer/styles.module.css @@ -1,15 +1,14 @@ .modalContainer { - max-width: 792px; - width: 100%; border: 1px solid #848C96; border-radius: 8px 8px 0 0; - position: fixed; + position: absolute; z-index: 10; top: 100%; - left: 50%; + left: 15px; + right: 15px; min-height: 512px; opacity: 0; - transform: translate(-50%, 100%); + transform: translate(0, 100%); transition-property: 'transform', 'opacity'; transition-duration: .4s; transition-timing-function: ease; @@ -20,7 +19,7 @@ .modalContainerOpen { opacity: 1; - transform: translate(-50%, -100%); + transform: translate(0, -100%); } .modalHeader { @@ -56,3 +55,11 @@ height: 394px; overflow-y: auto; } + +@media (width <= 1200px) { + .modalContainer { + position: fixed; + left: 0; + right: 0; + } +} diff --git a/src/components/ParserOpenRPC/global.module.css b/src/components/ParserOpenRPC/global.module.css index 3025e21761..b90a9d70f5 100644 --- a/src/components/ParserOpenRPC/global.module.css +++ b/src/components/ParserOpenRPC/global.module.css @@ -55,13 +55,20 @@ .rowWrap { display: flex; flex-wrap: wrap; - padding: 0 30px; + padding: 0 30px 0 0; } .colLeft { + position: relative; width: 65%; - padding-right: 23px; border-right: 1px solid #444950; + overflow: hidden; +} + +.colContentWrap { + height: calc(100vh - 84px); + padding: 0 30px; + overflow-y: auto; } .colRight { @@ -79,10 +86,11 @@ width: 100%; padding: 0; } -} - -@media (width <= 1024px) { + .colContentWrap { + height: auto; + padding: 0; + } .rowWrap { padding: 0; } -} \ No newline at end of file +} diff --git a/src/components/ParserOpenRPC/index.tsx b/src/components/ParserOpenRPC/index.tsx index 0fe3debd6f..c053e04440 100644 --- a/src/components/ParserOpenRPC/index.tsx +++ b/src/components/ParserOpenRPC/index.tsx @@ -86,15 +86,17 @@ export default function ParserOpenRPC({ network, method }: ParserProps) { return (
- - +
+ + +
\ No newline at end of file + \ No newline at end of file