From d9de6323c6e05595640d754696744ce341d9be5c Mon Sep 17 00:00:00 2001 From: rot1024 Date: Tue, 8 Feb 2022 18:29:30 +0900 Subject: [PATCH] Revert "refactor: format codes" This reverts commit 219ac6484da5738fe853401b36f1d90447d9d446. --- src/components/atoms/Plugin/IFrame/index.tsx | 2 +- .../molecules/Visualizer/Infobox/Frame/index.tsx | 8 ++++---- src/components/molecules/Visualizer/Plugin/context.tsx | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/atoms/Plugin/IFrame/index.tsx b/src/components/atoms/Plugin/IFrame/index.tsx index 2cd4905ef..e849362cd 100644 --- a/src/components/atoms/Plugin/IFrame/index.tsx +++ b/src/components/atoms/Plugin/IFrame/index.tsx @@ -5,7 +5,7 @@ import useHook, { RefType } from "./hooks"; export type Ref = RefType; export type Props = { - autoResize?: "both" | "width-only" | "height-only"; + autoResize?: boolean; className?: string; html?: string; visible?: boolean; diff --git a/src/components/molecules/Visualizer/Infobox/Frame/index.tsx b/src/components/molecules/Visualizer/Infobox/Frame/index.tsx index bacc399ef..e30606a07 100644 --- a/src/components/molecules/Visualizer/Infobox/Frame/index.tsx +++ b/src/components/molecules/Visualizer/Infobox/Frame/index.tsx @@ -236,10 +236,10 @@ const Content = styled.div<{ max-height: ${({ open }) => (open ? "50vh" : "0")}; padding: ${({ open }) => (open ? "20px 0" : "0")}; - padding-top: ${({ paddingTop }) => (paddingTop ? `${paddingTop}px` : null)}; - padding-bottom: ${({ paddingBottom }) => (paddingBottom ? `${paddingBottom}px` : null)}; - padding-left: ${({ paddingLeft }) => (paddingLeft ? `${paddingLeft}px` : null)}; - padding-right: ${({ paddingRight }) => (paddingRight ? `${paddingRight}px` : null)}; + padding-top: ${({ paddingTop }) => paddingTop ?`${paddingTop}px` : null}; + padding-bottom: ${({ paddingBottom }) => paddingBottom ? `${paddingBottom}px` : null}; + padding-left: ${({ paddingLeft }) => paddingLeft ? `${paddingLeft}px` : null}; + padding-right: ${({ paddingRight }) => paddingRight ? `${paddingRight}px` : null}; `; export default InfoBox; diff --git a/src/components/molecules/Visualizer/Plugin/context.tsx b/src/components/molecules/Visualizer/Plugin/context.tsx index 41127d80e..216dc2f22 100644 --- a/src/components/molecules/Visualizer/Plugin/context.tsx +++ b/src/components/molecules/Visualizer/Plugin/context.tsx @@ -152,7 +152,6 @@ export function Provider({ lookAt, zoomIn, zoomOut, - getTags, ], );