Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(explorer): add background to search suggestions #4162

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/explorer/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { ThemeSwitcher, ThemedIotaLogo } from '~/components';

function Header(): JSX.Element {
return (
<header className="flex h-header justify-center overflow-visible backdrop-blur-lg">
<header className="relative flex h-header justify-center overflow-visible">
<div className="absolute left-0 top-0 z-[-1] h-full w-full before:absolute before:inset-0 before:backdrop-blur" />
evavirseda marked this conversation as resolved.
Show resolved Hide resolved
<div className="container flex h-full flex-1 items-center justify-between gap-5">
<LinkWithQuery
data-testid="nav-logo-button"
Expand Down
2 changes: 1 addition & 1 deletion apps/explorer/src/components/module/PkgModulesWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function PkgModulesWrapper({
isLoading={false}
suggestions={searchSuggestions}
renderSuggestion={(suggestion) => (
<div className="z-10 flex cursor-pointer justify-between">
<div className="search-suggestions-solid-bg z-10 flex cursor-pointer justify-between">
<ListItem
hideBottomBorder
onClick={() => onChangeModule(suggestion.label)}
Expand Down
2 changes: 1 addition & 1 deletion apps/explorer/src/components/object/ObjectFieldsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function ObjectFieldsCard({
}}
isLoading={false}
renderSuggestion={(suggestion) => (
<div className="flex cursor-pointer justify-between">
<div className="search-suggestions-solid-bg flex cursor-pointer justify-between backdrop-blur">
<ListItem hideBottomBorder>
<div className="overflow-hidden text-ellipsis">
{suggestion.label}
Expand Down
2 changes: 1 addition & 1 deletion apps/explorer/src/components/search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Search(): JSX.Element {
isLoading={isPending || debouncedQuery !== query}
suggestions={results}
renderSuggestion={(suggestion) => (
<div className="flex cursor-pointer justify-between">
<div className="flex cursor-pointer justify-between backdrop-blur">
<ListItem hideBottomBorder>
<div className="overflow-hidden text-ellipsis">{suggestion.label}</div>
<div className="break-words pl-xs text-caption font-medium uppercase text-steel">
Expand Down
4 changes: 4 additions & 0 deletions apps/explorer/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,8 @@ body,
'owner lastTxBlock storageRebate';
}
}

.search-suggestions-solid-bg {
@apply bg-neutral-100 dark:bg-neutral-10;
}
}
Loading