Skip to content

Commit

Permalink
[EVENTOS] Ausência de feedback ao usuário em situação de filtragem se…
Browse files Browse the repository at this point in the history
…m resultado.

adicionado feedback ao usuário em caso de filtragem sem resultado
  • Loading branch information
fns21 authored Aug 19, 2024
2 parents 9994e57 + 4a20658 commit 919ab27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/Search/components/search-list-event/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
</div>
</div>
<mc-loading :condition="loading && page == 1"></mc-loading>
<div v-if="!loading || page > 1" class="col-9 search-list__cards">
<div v-if="!loading || page > 1 && occurrences.length == 0" class="col-9 search-list__cards--no-occurrence">
<p><?= i::__('Não existem eventos cadastrados para os filtros selecionados.') ?></p>
</div>
<div v-if="!loading || page > 1 && occurrences" class="col-9 search-list__cards">
<div class="grid-12">
<div v-for="occurrence in occurrences" :key="occurrence._reccurrence_string" class="col-12">
<div v-if="newDate(occurrence)" class="search-list__cards--date">
Expand Down
10 changes: 10 additions & 0 deletions src/themes/BaseV2/assets-src/sass/pages/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,16 @@
&__cards {
position: relative;

&--no-occurrence {
background-color: var(--mc-white);
border-radius: var(--mc-border-radius-sm);
padding: size(28);
width: 100%;
height: 20%;
display: flex;
box-sizing: border-box;
align-items: center;
}
//aqui é o estilo do marcador de tempo
&--date {
align-items: center;
Expand Down

0 comments on commit 919ab27

Please sign in to comment.