From dd827824e3055add8be77ca7b7a55476244ee0dd Mon Sep 17 00:00:00 2001 From: Timofey Boyko Date: Tue, 19 Apr 2022 07:41:45 +0300 Subject: [PATCH] Web:Files:Components: fix embedding panel body styles when open it at share panel of modal view --- .../panels/EmbeddingPanel/EmbeddingBody.js | 131 +++++++++--------- .../EmbeddingPanel/StyledEmbeddingPanel.js | 57 ++++++++ .../components/panels/EmbeddingPanel/index.js | 11 +- .../components/panels/SharingPanel/Header.js | 2 - .../src/components/panels/StyledPanels.js | 52 ------- 5 files changed, 127 insertions(+), 126 deletions(-) create mode 100644 products/ASC.Files/Client/src/components/panels/EmbeddingPanel/StyledEmbeddingPanel.js diff --git a/products/ASC.Files/Client/src/components/panels/EmbeddingPanel/EmbeddingBody.js b/products/ASC.Files/Client/src/components/panels/EmbeddingPanel/EmbeddingBody.js index db1486aebb..8d83b6879d 100644 --- a/products/ASC.Files/Client/src/components/panels/EmbeddingPanel/EmbeddingBody.js +++ b/products/ASC.Files/Client/src/components/panels/EmbeddingPanel/EmbeddingBody.js @@ -8,6 +8,7 @@ import toastr from "@appserver/components/toast/toastr"; import IconButton from "@appserver/components/icon-button"; import i18n from "./i18n"; import { withTranslation, I18nextProvider } from "react-i18next"; +import StyledBody from "./StyledEmbeddingPanel"; const EmbeddingBody = ({ embeddingLink, t, theme }) => { const [size, setSize] = useState("auto"); @@ -61,74 +62,76 @@ const EmbeddingBody = ({ embeddingLink, t, theme }) => { }; return ( -
- {t("Common:Size")}: -
- - 600 x 800 px - - - 400 x 600 px - - - {t("Auto")} - -
-
-
- {t("Width")}: - + +
+ {t("Common:Size")}: +
+ + 600 x 800 px + + + 400 x 600 px + + + {t("Auto")} +
-
- {t("Height")}: - +
+ {t("Width")}: + +
+
+ {t("Height")}: + +
+
+
+ {t("EmbedCode")}: + +