Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
de7de01a
Commit
de7de01a
authored
Aug 02, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
621dc684
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
SearchResults.tsx
ui/pages/SearchResults.tsx
+3
-3
SearchResults.pw.tsx_default_with-apps-default-view-mobile-1.png
...esults.pw.tsx_default_with-apps-default-view-mobile-1.png
+0
-0
SearchResults.pw.tsx_mobile_with-apps-default-view-mobile-1.png
...Results.pw.tsx_mobile_with-apps-default-view-mobile-1.png
+0
-0
SearchBarSuggestApp.tsx
...ippets/searchBar/SearchBarSuggest/SearchBarSuggestApp.tsx
+1
-3
No files found.
ui/pages/SearchResults.tsx
View file @
de7de01a
...
...
@@ -73,7 +73,7 @@ const SearchResultsPageContent = () => {
return
(
<>
<
Show
below=
"lg"
ssr=
{
false
}
>
{
marketplaceApps
.
displayedApps
.
map
((
item
,
index
)
=>
(
{
pagination
.
page
===
1
&&
marketplaceApps
.
displayedApps
.
map
((
item
,
index
)
=>
(
<
SearchResultListItem
key=
{
'
actual_
'
+
index
}
data=
{
{
type
:
'
app
'
,
app
:
item
}
}
...
...
@@ -100,7 +100,7 @@ const SearchResultsPageContent = () => {
</
Tr
>
</
Thead
>
<
Tbody
>
{
marketplaceApps
.
displayedApps
.
map
((
item
,
index
)
=>
(
{
pagination
.
page
===
1
&&
marketplaceApps
.
displayedApps
.
map
((
item
,
index
)
=>
(
<
SearchResultTableItem
key=
{
'
actual_
'
+
index
}
data=
{
{
type
:
'
app
'
,
app
:
item
}
}
...
...
@@ -138,7 +138,7 @@ const SearchResultsPageContent = () => {
<
chakra
.
span
fontWeight=
{
700
}
>
{
resultsCount
}
</
chakra
.
span
>
<
span
>
matching result
{
(
data
?.
items
&&
data
.
items
.
length
>
1
)
||
pagination
.
page
>
1
?
'
s
'
:
''
}
for
</
span
>
<
span
>
matching result
{
(
((
data
?.
items
.
length
||
0
)
+
marketplaceApps
.
displayedApps
.
length
)
>
1
)
||
pagination
.
page
>
1
?
'
s
'
:
''
}
for
</
span
>
“
<
chakra
.
span
fontWeight=
{
700
}
>
{
debouncedSearchTerm
}
</
chakra
.
span
>
”
</
Box
>
)
...
...
ui/pages/__screenshots__/SearchResults.pw.tsx_default_with-apps-default-view-mobile-1.png
View replaced file @
621dc684
View file @
de7de01a
36.9 KB
|
W:
|
H:
36.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/pages/__screenshots__/SearchResults.pw.tsx_mobile_with-apps-default-view-mobile-1.png
View replaced file @
621dc684
View file @
de7de01a
39.2 KB
|
W:
|
H:
39.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/snippets/searchBar/SearchBarSuggest/SearchBarSuggestApp.tsx
View file @
de7de01a
...
...
@@ -27,8 +27,6 @@ const SearchBarSuggestApp = ({ data, isMobile, searchTerm, onClick }: Props) =>
/>
);
const
secondaryColor
=
useColorModeValue
(
'
gray.500
'
,
'
gray.400
'
);
const
content
=
(()
=>
{
if
(
isMobile
)
{
return
(
...
...
@@ -83,7 +81,7 @@ const SearchBarSuggestApp = ({ data, isMobile, searchTerm, onClick }: Props) =>
>
{
data
.
description
}
</
Text
>
{
data
.
external
&&
<
Icon
as=
{
arrowIcon
}
boxSize=
{
4
}
verticalAlign=
"middle"
color=
{
secondaryColor
}
/>
}
{
data
.
external
&&
<
Icon
as=
{
arrowIcon
}
boxSize=
{
4
}
verticalAlign=
"middle"
color=
"text_secondary"
/>
}
</
Flex
>
);
})();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment