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.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
66and 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
Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments