From 090c99be3d2650054065e5e42b86d01b7ed83607 Mon Sep 17 00:00:00 2001 From: teddy Date: Wed, 5 Mar 2025 03:44:57 +0000 Subject: [PATCH] Fix(Styles): Improved design of Google Translate features and removal / hiding of iframes that cannot be properly styled. --- index.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 3f7e346..3c0a856 100644 --- a/index.html +++ b/index.html @@ -89,9 +89,14 @@ color: var(--accent-color); } - /* Google Translate styles */ - .skiptranslate { - /* display: none; */ + /* Google Translate styles + - Hide poorly styled iframes + */ + iframe.skiptranslate { + display: none !important; + } + body { + top: 0px !important; } /* Main content styles */ @@ -468,7 +473,8 @@ function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', - layout: google.translate.TranslateElement.InlineLayout.SIMPLE + // layout: google.translate.TranslateElement.InlineLayout.SIMPLE + layout: google.translate.TranslateElement.InlineLayout.VERTICAL }, 'google_translate_element'); }