Skip to content

Commit ef1510b

Browse files
committed
fixing styling
1 parent 43f9065 commit ef1510b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/theme/SearchBar/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,10 @@ function DocSearch({ contextualSearch, externalUrlRegex, ...props }) {
165165
{/* Selector positioned as overlay */}
166166
<div style={{
167167
position: 'fixed',
168-
top: '120px', // Much closer to search bar area
169-
right: 'calc(50% - 280px)', // Position relative to modal right edge
168+
top: window.innerWidth < 768 ? '55px' : '120px',
169+
right: window.innerWidth < 768 ? 'calc(50% - 185px)' : 'calc(50% - 255px)',
170170
zIndex: 10000,
171171
backgroundColor: 'var(--docsearch-modal-background)',
172-
padding: '6px 12px',
173-
borderRadius: '6px',
174-
border: '1px solid var(--docsearch-modal-shadow)',
175172
boxShadow: '0 2px 8px rgba(0,0,0,0.1)'
176173
}}>
177174
<DocTypeSelector

0 commit comments

Comments
 (0)