Skip to content

Commit

Permalink
use classic header for recent searches and fix padding
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienMotte committed Mar 8, 2022
1 parent 97291b0 commit 47c2540
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions examples/two-column-layout/src/plugins/recentSearchesPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ export const recentSearchesPlugin = createLocalStorageRecentSearchesPlugin({
...source,
templates: {
...source.templates,
header({ state }) {
header({ state, Fragment }) {
return (
<div className="aa-SourceHeaderTitle">
{state.query ? 'Suggestions' : 'Recent searches'}
</div>
<Fragment>
<span className="aa-SourceHeaderTitle">
{state.query ? 'Suggestions' : 'Recent searches'}
</span>
<div className="aa-SourceHeaderLine" />
</Fragment>
);
},
},
Expand Down
1 change: 0 additions & 1 deletion examples/two-column-layout/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ body {

/* Products */
.aa-PanelSection--products {
padding: var(--aa-spacing-half);
transition: background 0.2s ease-out;
}

Expand Down

0 comments on commit 47c2540

Please sign in to comment.