Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
fix: search bar width, font-mono inputs, dark mode placeholder color
  • Loading branch information
pthmas committed Apr 14, 2026
commit 05b9706ef3479d2f36e88590a262c020611f021e
4 changes: 2 additions & 2 deletions frontend/src/components/ContractTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import {
} from '../constants/contractVerification';

const themedInputClassName =
'w-full bg-dark-700/80 backdrop-blur border border-dark-500 px-3 py-2 text-sm text-fg placeholder-gray-500 rounded-xl shadow-md shadow-black/20 focus:outline-none focus:border-accent-primary focus:ring-2 focus:ring-accent-primary/40 transition';
'w-full bg-dark-700/80 backdrop-blur border border-dark-500 px-3 py-2 text-sm text-fg placeholder-gray-500 rounded-xl shadow-md shadow-black/20 focus:outline-none focus:border-accent-primary focus:ring-2 focus:ring-accent-primary/40 transition font-mono';

const themedMonoInputClassName = `${themedInputClassName} font-mono`;
const themedMonoInputClassName = themedInputClassName;

interface Props {
address: string;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default function Layout() {
{!isHome && (
<div className="bg-dark-800/40">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 flex justify-center">
<div className="w-full md:w-96">
<div className="w-full md:w-[560px]">
<SearchBar />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ export default function SearchBar() {
value={query}
onChange={(e) => setQuery(e.target.value)}
onKeyDown={onKeyDown}
placeholder="Search Address / Tx Hash / Block / Token / NFT"
className="search-input w-full bg-dark-700/80 backdrop-blur border border-dark-500 px-4 py-2 pl-10 text-sm rounded-full shadow-md shadow-black/20 focus:outline-none focus:border-accent-primary focus:ring-2 focus:ring-accent-primary/40 transition"
placeholder="Search Address/Tx Hash/Block/Token/NFT"
className="search-input w-full bg-dark-700/80 backdrop-blur border border-dark-500 px-4 py-2 pl-10 text-sm rounded-full shadow-md shadow-black/20 focus:outline-none focus:border-accent-primary focus:ring-2 focus:ring-accent-primary/40 transition font-mono"
/>
<svg
className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
:root:not([data-theme='light']) .text-gray-700 {
color: rgb(248 250 252 / var(--tw-text-opacity, 1));
}

/* Match form input placeholder brightness to search bar in dark mode. */
:root:not([data-theme='light']) input::placeholder,
:root:not([data-theme='light']) textarea::placeholder {
color: rgb(255 255 255 / 0.72);
}
}

@layer components {
Expand Down
Loading