From 41162b094072565f8db4f8bb6566401dcc49b35d Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Mon, 6 Dec 2021 11:58:14 +0100 Subject: [PATCH] added iframe height --- apps/remix-ide/src/app/components/panel.js | 2 -- .../side-panel/src/lib/remix-ui-side-panel.module.css | 9 +++++++-- libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.tsx | 9 ++------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/apps/remix-ide/src/app/components/panel.js b/apps/remix-ide/src/app/components/panel.js index cba9fdc416..d8cc5b094b 100644 --- a/apps/remix-ide/src/app/components/panel.js +++ b/apps/remix-ide/src/app/components/panel.js @@ -14,7 +14,6 @@ export class AbstractPanel extends HostPlugin { this.contents = {} this.active = undefined this.element = document.createElement('div') - this.element.setAttribute('style', 'height: 100%; width: 100%; border: 0;') } onActivation () { @@ -23,7 +22,6 @@ export class AbstractPanel extends HostPlugin { addView (profile, view) { if (this.contents[profile.name]) throw new Error(`Plugin ${profile.name} already rendered`) - // view.style.height = '90%' // makde external plugins full height view.style.width = '100%' view.style.border = '0' this.contents[profile.name] = view diff --git a/libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.module.css b/libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.module.css index b271bcc176..05d376a1f4 100644 --- a/libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.module.css +++ b/libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.module.css @@ -16,7 +16,7 @@ padding-left: 6px; font-size: 14px; } - .remix-ui-side-panel-swapitHeader { + .swapitHeader { display: flex; align-items: center; padding: 16px 24px 15px; @@ -40,4 +40,9 @@ margin-left: 5px; text-transform: lowercase; cursor: default; - } \ No newline at end of file + } + + iframe { + height: 100%; + overflow-y: scroll; + } diff --git a/libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.tsx b/libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.tsx index 85187a83ba..0bc129bd3b 100644 --- a/libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.tsx +++ b/libs/remix-ui/side-panel/src/lib/remix-ui-side-panel.tsx @@ -46,7 +46,7 @@ export function RemixUiSidePanel(props: RemixUiSidePanelProps) { const renderHeader = () => { getProfile() return ( -
+
{renderHeader()} -
-
); }