mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
mobile: fix note search
This commit is contained in:
committed by
Abdullah Atta
parent
29b0c2eeda
commit
3e4862d768
@@ -283,7 +283,14 @@ export default function LinkNote(props: {
|
||||
width: "100%"
|
||||
}}
|
||||
>
|
||||
<Paragraph numberOfLines={1}>{selectedNote?.title}</Paragraph>
|
||||
<Paragraph
|
||||
style={{
|
||||
flexShrink: 1
|
||||
}}
|
||||
numberOfLines={1}
|
||||
>
|
||||
{selectedNote?.title}
|
||||
</Paragraph>
|
||||
|
||||
<Paragraph
|
||||
color={colors.secondary.paragraph}
|
||||
|
||||
@@ -248,7 +248,13 @@ const SelectableNoteItem = React.memo(
|
||||
flexGrow: 1
|
||||
}}
|
||||
>
|
||||
<Heading size={AppFontSize.sm} numberOfLines={1}>
|
||||
<Heading
|
||||
size={AppFontSize.sm}
|
||||
numberOfLines={1}
|
||||
style={{
|
||||
maxWidth: "93%"
|
||||
}}
|
||||
>
|
||||
{item?.title}
|
||||
</Heading>
|
||||
{item.type == "note" && item.headline ? (
|
||||
@@ -256,6 +262,9 @@ const SelectableNoteItem = React.memo(
|
||||
numberOfLines={1}
|
||||
color={colors?.secondary.paragraph}
|
||||
size={AppFontSize.sm}
|
||||
style={{
|
||||
maxWidth: "93%"
|
||||
}}
|
||||
>
|
||||
{item.headline}
|
||||
</Paragraph>
|
||||
|
||||
@@ -65,7 +65,7 @@ export const Search = ({ route, navigation }: NavigationProps<"Search">) => {
|
||||
const groupOptions = db.settings.getGroupOptions("search");
|
||||
switch (route.params.type) {
|
||||
case "note":
|
||||
results = await db.lookup.notes(
|
||||
results = await db.lookup.notesWithHighlighting(
|
||||
query,
|
||||
groupOptions,
|
||||
route.params.items as FilteredSelector<Note>
|
||||
|
||||
Reference in New Issue
Block a user