From 0bb452c88b4c4f76865a5b202c8f5d4d0cc3071c Mon Sep 17 00:00:00 2001 From: sienori Date: Tue, 30 Aug 2022 22:05:49 +0900 Subject: [PATCH] Fix popup width for firefox --- src/popup/components/PopupPage.js | 2 ++ src/popup/styles/PopupPage.scss | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/popup/components/PopupPage.js b/src/popup/components/PopupPage.js index ebebd0f..55b5735 100644 --- a/src/popup/components/PopupPage.js +++ b/src/popup/components/PopupPage.js @@ -82,6 +82,8 @@ export default class PopupPage extends Component { isEnabledOnPage: tabInfo.isEnabledOnPage }); if (tabInfo.selectedText !== "") this.handleInputText(tabInfo.selectedText); + + document.body.style.width = "348px"; }; handleInputText = inputText => { diff --git a/src/popup/styles/PopupPage.scss b/src/popup/styles/PopupPage.scss index 14b4a25..f89a2b4 100644 --- a/src/popup/styles/PopupPage.scss +++ b/src/popup/styles/PopupPage.scss @@ -67,8 +67,6 @@ body { font-family: "Segoe UI", "San Francisco", "Ubuntu", "Fira Sans", "Roboto", "Arial", "Helvetica", sans-serif; font-size: 13px; - width: 100%; - min-width: 348px; overflow: hidden; background-color: var(--main-bg);