mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Added shadow to search box with results
This commit is contained in:
parent
214f60e114
commit
02c9eb772d
1 changed files with 7 additions and 2 deletions
|
@ -127,8 +127,13 @@ class PopupContent extends React.Component {
|
|||
|
||||
function SearchBox() {
|
||||
const {searchValue, dispatch} = useContext(AppContext);
|
||||
let className = 'z-10 relative flex items-center py-5 px-7 mt-10 md:mt-0 bg-white rounded-t-lg shadow';
|
||||
if (!searchValue) {
|
||||
className = 'z-10 relative flex items-center py-5 px-7 mt-10 md:mt-0 bg-white rounded-lg';
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='flex items-center py-5 px-7 mt-0'>
|
||||
<div className={className}>
|
||||
<SearchIcon className='mr-3 text-neutral-900' alt='Search' />
|
||||
<input
|
||||
value={searchValue || ''}
|
||||
|
@ -329,7 +334,7 @@ function Results({posts, authors, tags}) {
|
|||
return null;
|
||||
}
|
||||
return (
|
||||
<div className='overflow-y-auto max-h-[70vh]'>
|
||||
<div className='overflow-y-auto max-h-[70vh] -mt-[1px]'>
|
||||
<AuthorResults authors={authors} />
|
||||
<TagResults tags={tags} />
|
||||
<PostResults posts={posts} />
|
||||
|
|
Loading…
Add table
Reference in a new issue