Fix(Styles): Improved design of Google Translate features and removal / hiding of iframes that cannot be properly styled.

This commit is contained in:
2025-03-05 03:44:57 +00:00
parent 973df8f70b
commit 090c99be3d

View File

@@ -89,9 +89,14 @@
color: var(--accent-color); color: var(--accent-color);
} }
/* Google Translate styles */ /* Google Translate styles
.skiptranslate { - Hide poorly styled iframes
/* display: none; */ */
iframe.skiptranslate {
display: none !important;
}
body {
top: 0px !important;
} }
/* Main content styles */ /* Main content styles */
@@ -468,7 +473,8 @@
function googleTranslateElementInit() { function googleTranslateElementInit() {
new google.translate.TranslateElement({ new google.translate.TranslateElement({
pageLanguage: 'en', pageLanguage: 'en',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE // layout: google.translate.TranslateElement.InlineLayout.SIMPLE
layout: google.translate.TranslateElement.InlineLayout.VERTICAL
}, 'google_translate_element'); }, 'google_translate_element');
} }
</script> </script>