Skip to content

Commit

Permalink
Merge pull request #34 from CityOfPhiladelphia/search-redesign
Browse files Browse the repository at this point in the history
feedback changes
  • Loading branch information
RitikaDesai98 authored Jun 11, 2024
2 parents a757948 + 50ee9cb commit 551200e
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@
>
<i class="fas fa-spinner fa-spin fa-3x" />
</div>

<div
v-show="!loading && emptyResponse"
class="h3 mtm center"
>
Sorry, there are no results.
</div>

<div
v-show="failure"
class="h3 mtm center"
Expand All @@ -103,9 +95,14 @@
<div id="tiles">
<div class="filter-summary">
<span class="result-summary">
Showing {{ filteredTools.length }} results out of {{ tools.length }} in <b><em>Tools</em></b>
<span v-if="filteredTools.length === 0">
No results found for
</span>
<span v-else>
Showing {{ filteredTools.length }} results out of {{ tools.length }} records <span v-if="checkedTopics.length > 0 || search.length > 0">for</span>
</span>
<span v-if="search.length > 0">
for <b><em>"{{ search }}"</em></b>
<b><em>"{{ search }}"</em></b>
</span>
</span>
<span v-if="checkedTopics.length > 0">
Expand All @@ -116,12 +113,12 @@
@click="removeFilter(item)"
>
{{ item }}
<i class="fa-solid fa-xmark"></i>
<i class="fa-solid fa-xmark" />
</button>
</span>
<span>
<input
v-if="checkedTopics.length > 0"
v-if="checkedTopics.length > 0 || search.length > 0"
type="submit"
class="clear-search-button"
value="Clear all"
Expand Down Expand Up @@ -625,8 +622,9 @@ export default {
.filter-button{
font-family: "Open Sans", Helvetica, Roboto, Arial, sans-serif;
margin: 0px 8px 8px 0px;
margin: 0px 8px 0px 0px;
padding: 6px;
border: 2px solid transparent;
border-radius: 4px;
background-color: #cfcfcf;
color: #333333;
Expand All @@ -641,7 +639,7 @@ export default {
}
.filter-button:hover{
border: 2px solid #2176d2;
border-color: #2176d2;
}
.result-summary {
Expand Down

0 comments on commit 551200e

Please sign in to comment.