Skip to content

Commit 69e7dbd

Browse files
committed
[search bar] multi-line wrap
1 parent ee90edc commit 69e7dbd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## Unreleased
9+
- Fixed search bar line wrapping. [#501](https://github.com/sourcebot-dev/sourcebot/pull/501)
10+
811
## [4.5.1] - 2025-07-14
912

1013
### Changed

packages/web/src/app/[domain]/components/searchBar/searchBar.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ const searchBarContainerVariants = cva(
7878
{
7979
variants: {
8080
size: {
81-
default: "h-10",
82-
sm: "h-8"
81+
default: "min-h-10",
82+
sm: "min-h-8"
8383
}
8484
},
8585
defaultVariants: {
@@ -168,6 +168,7 @@ export const SearchBar = ({
168168
keymap.of(searchBarKeymap),
169169
history(),
170170
zoekt(),
171+
EditorView.lineWrapping,
171172
EditorView.updateListener.of(update => {
172173
if (update.selectionSet) {
173174
const selection = update.state.selection.main;
@@ -259,7 +260,7 @@ export const SearchBar = ({
259260
/>
260261
<CodeMirror
261262
ref={editorRef}
262-
className="overflow-x-auto w-full"
263+
className="w-full"
263264
placeholder={isHistorySearchEnabled ? "Filter history..." : "Search (/) through repos..."}
264265
value={query}
265266
onChange={(value) => {

0 commit comments

Comments
 (0)