Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106_2022_02
boco-frontend
Commits
2506dca9
Commit
2506dca9
authored
3 years ago
by
Titus Netland
Browse files
Options
Downloads
Patches
Plain Diff
Fixed search items view
parent
a99481f5
No related branches found
No related tags found
1 merge request
!166
Fixed search items view
Pipeline
#182708
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/CommunityComponents/CommunityHome.vue
+6
-6
6 additions, 6 deletions
src/components/CommunityComponents/CommunityHome.vue
src/components/UserProfileComponents/UserItems.vue
+17
-12
17 additions, 12 deletions
src/components/UserProfileComponents/UserItems.vue
with
23 additions
and
18 deletions
src/components/CommunityComponents/CommunityHome.vue
+
6
−
6
View file @
2506dca9
...
...
@@ -55,14 +55,14 @@
<!-- Shows items based on search field input -->
<div
class=
"grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full
place-items-center
"
v-if=
"showSearchedItems"
class=
"grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full"
v-if=
"showSearchedItems"
>
<ItemCard
v-for=
"item in searchedItems"
:key=
"item"
:item=
"item"
@
click=
"goToItemInfoPage(item.listingID)"
v-for=
"item in searchedItems"
:key=
"item"
:item=
"item"
@
click=
"goToItemInfoPage(item.listingID)"
/>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/components/UserProfileComponents/UserItems.vue
+
17
−
12
View file @
2506dca9
...
...
@@ -110,18 +110,23 @@
</div>
<!-- Shows items based on search field input -->
<div
class=
"grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full place-items-center"
v-if=
"showSearchedItems"
>
<div
class=
"cardContainer"
v-for=
"item in searchedItems"
:key=
"item"
>
<div
class=
"w-full"
>
<ItemCard
id=
"ItemCardSearch"
class=
"ItemCard w-full h-full"
:item=
"item"
/>
</div>
<div
class=
"grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full"
v-if=
"showSearchedItems"
>
<div
class=
"cardContainer"
id=
"item"
v-for=
"item in searchedItems"
:key=
"item"
>
<div
class=
"w-full"
>
<ItemCard
id=
"ItemCardSearch"
class=
"ItemCard w-full h-full"
:item=
"item"
/>
</div>
<!-- Dropdown menu with options for editing an item and deleting an item -->
<TripleDotButton
class=
"DotButton"
@
click=
"openDotMenu(item)"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment