Skip to content

Commit 2917da6

Browse files
committed
refactor: update TopBar search input to be read-only and enhance click behavior
1 parent 7132657 commit 2917da6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/src/components/top-bar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ export function TopBar({ version, links }: TopBarProps): JSX.Element {
7171
<label className="input input-bordered input-sm hidden lg:flex items-center gap-2">
7272
<input
7373
type="text"
74-
className="grow"
74+
className="grow cursor-pointer"
7575
placeholder={localize("navbar-section-search")}
7676
onClick={showModal}
77+
readOnly
78+
onFocus={(e) => e.target.blur()}
7779
/>
7880
<kbd className="kbd kbd-sm">/</kbd>
7981
</label>

0 commit comments

Comments
 (0)