mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
[search bar] multi-line wrap (#501)
This commit is contained in:
parent
7cbda320cb
commit
660623ac52
2 changed files with 5 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed Bitbucket Cloud pagination not working beyond first page. [#295](https://github.com/sourcebot-dev/sourcebot/issues/295)
|
- Fixed Bitbucket Cloud pagination not working beyond first page. [#295](https://github.com/sourcebot-dev/sourcebot/issues/295)
|
||||||
|
- Fixed search bar line wrapping. [#501](https://github.com/sourcebot-dev/sourcebot/pull/501)
|
||||||
|
|
||||||
## [4.6.7] - 2025-09-08
|
## [4.6.7] - 2025-09-08
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,8 +78,8 @@ const searchBarContainerVariants = cva(
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
size: {
|
size: {
|
||||||
default: "h-10",
|
default: "min-h-10",
|
||||||
sm: "h-8"
|
sm: "min-h-8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
|
|
@ -168,6 +168,7 @@ export const SearchBar = ({
|
||||||
keymap.of(searchBarKeymap),
|
keymap.of(searchBarKeymap),
|
||||||
history(),
|
history(),
|
||||||
zoekt(),
|
zoekt(),
|
||||||
|
EditorView.lineWrapping,
|
||||||
EditorView.updateListener.of(update => {
|
EditorView.updateListener.of(update => {
|
||||||
if (update.selectionSet) {
|
if (update.selectionSet) {
|
||||||
const selection = update.state.selection.main;
|
const selection = update.state.selection.main;
|
||||||
|
|
@ -259,7 +260,7 @@ export const SearchBar = ({
|
||||||
/>
|
/>
|
||||||
<CodeMirror
|
<CodeMirror
|
||||||
ref={editorRef}
|
ref={editorRef}
|
||||||
className="overflow-x-auto w-full"
|
className="w-full"
|
||||||
placeholder={isHistorySearchEnabled ? "Filter history..." : "Search (/) through repos..."}
|
placeholder={isHistorySearchEnabled ? "Filter history..." : "Search (/) through repos..."}
|
||||||
value={query}
|
value={query}
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue