File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/web/src/app/[domain]/components/searchBar Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## Unreleased
9
+ - Fixed search bar line wrapping. [ #501 ] ( https://github.com/sourcebot-dev/sourcebot/pull/501 )
10
+
8
11
## [ 4.5.1] - 2025-07-14
9
12
10
13
### Changed
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ const searchBarContainerVariants = cva(
78
78
{
79
79
variants : {
80
80
size : {
81
- default : "h-10" ,
82
- sm : "h-8"
81
+ default : "min- h-10" ,
82
+ sm : "min- h-8"
83
83
}
84
84
} ,
85
85
defaultVariants : {
@@ -168,6 +168,7 @@ export const SearchBar = ({
168
168
keymap . of ( searchBarKeymap ) ,
169
169
history ( ) ,
170
170
zoekt ( ) ,
171
+ EditorView . lineWrapping ,
171
172
EditorView . updateListener . of ( update => {
172
173
if ( update . selectionSet ) {
173
174
const selection = update . state . selection . main ;
@@ -259,7 +260,7 @@ export const SearchBar = ({
259
260
/>
260
261
< CodeMirror
261
262
ref = { editorRef }
262
- className = "overflow-x-auto w-full"
263
+ className = "w-full"
263
264
placeholder = { isHistorySearchEnabled ? "Filter history..." : "Search (/) through repos..." }
264
265
value = { query }
265
266
onChange = { ( value ) => {
You can’t perform that action at this time.
0 commit comments