Skip to content

Commit 2c9d68a

Browse files
committed
fix: reposition and restyle google translate widget
1 parent ddd1713 commit 2c9d68a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/theme/Root.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ export default function Root({ children }) {
4343
id="google_translate_element"
4444
style={{
4545
position: 'fixed',
46-
top: '2rem', /* halfway down the 4rem navbar */
47-
right: '72px', /* leaves breathing room from right edge */
46+
top: '2.25rem', /* Center of the 4.5rem navbar */
47+
right: '120px', /* Moved left to avoid hiding links */
4848
transform: 'translateY(-50%)',
4949
zIndex: 9999,
50-
backgroundColor: 'var(--glass-bg, rgba(20,20,30,0.6))',
51-
backdropFilter: 'blur(10px)',
52-
padding: '4px 8px',
53-
borderRadius: '6px',
54-
border: '1px solid var(--glass-border, rgba(255,255,255,0.08))',
50+
backgroundColor: 'var(--nb-white)',
51+
padding: '2px 4px',
52+
borderRadius: '0px',
53+
border: 'var(--nb-border)',
54+
boxShadow: 'var(--nb-shadow-pressed)',
5555
}}
5656
/>
5757

0 commit comments

Comments
 (0)