From dfdad14ede06a2287ab47fd842b136a75160725a Mon Sep 17 00:00:00 2001
From: Marco Rodolfi <marco.rodolfi@tuta.io>
Date: Fri, 26 May 2023 13:29:47 +0200
Subject: Fix: actually force the cog icon to stay inline

---
 frontend/src/plugin-loader.tsx | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'frontend/src/plugin-loader.tsx')

diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index fd400743..2ce112e2 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -1,6 +1,7 @@
 import { ConfirmModal, ModalRoot, Patch, QuickAccessTab, Router, showModal, sleep } from 'decky-frontend-lib';
 import { FC, lazy } from 'react';
 import { Trans, Translation } from 'react-i18next';
+import { IconContext } from 'react-icons';
 import { FaCog, FaExclamationCircle, FaPlug } from 'react-icons/fa';
 
 import { DeckyState, DeckyStateContextProvider, useDeckyState } from './components/DeckyState';
@@ -265,12 +266,11 @@ class PluginLoader extends Logger {
                   <pre>
                     <code>{e instanceof Error ? e.stack : JSON.stringify(e)}</code>
                   </pre>
-                  <>
-                    <Trans
-                      i18nKey="PluginLoader.plugin_error_uninstall"
-                      components={[<FaCog style={{ display: 'inline' }} />]}
-                    />
-                  </>
+                  <IconContext.Provider value={{ style: { verticalAlign: 'middle' } }}>
+                    <div>
+                      <Trans i18nKey="PluginLoader.plugin_error_uninstall" components={[<FaCog />]} />
+                    </div>
+                  </IconContext.Provider>
                 </>
               );
             }}
-- 
cgit v1.2.3

