Skip to content

Commit 44c194b

Browse files
committed
Merge branch 'master' into develop
2 parents 2344765 + 56031a1 commit 44c194b

7 files changed

Lines changed: 50 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ e este projeto adere ao [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
3535
- Corrige a exportação de oportunidades para não incluir datas das fases de avaliação quando a opção de exportar datas das fases estiver desmarcada
3636
- Corrige o cálculo ponderado dos subtotais na tela de avaliação técnica
3737

38+
## [7.7.48] - 2026-05-29
39+
### Correções
40+
- Ajusta layout do mobile da listagem de oportunidades
41+
- Adiciona o botão "Ver mais" e limita a descrição dos cards das entidades a no máximo 3 linhas no mobile.
42+
3843
## [7.7.47] - 2026-05-28
3944
### Correções
4045
- garante que uma fase de recurso não seja criada de forma incompleta, faltando metadados ou informações que a definam corretamente como uma fase de recurso

src/modules/Components/components/entity-card/script.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ app.component('entity-card', {
1010
},
1111

1212
data() {
13-
return {}
13+
return {
14+
expandedDescription: false
15+
}
1416
},
1517

1618
props: {
@@ -43,7 +45,7 @@ app.component('entity-card', {
4345
showShortDescription() {
4446
if (this.entity.shortDescription) {
4547
if (this.entity.shortDescription.length > 400) {
46-
return this.entity.shortDescription.substring(0, 400) + '...';
48+
return this.entity.shortDescription.substring(0, 400);
4749
} else {
4850
return this.entity.shortDescription;
4951
}

src/modules/Components/components/entity-card/template.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@
7171
</div>
7272
</template>
7373

74-
<div v-if="entity.shortDescription" class="entity-card__content-shortDescription">
74+
<div v-if="entity.shortDescription" class="entity-card__content-shortDescription" :class="{'expanded': expandedDescription}">
7575
<small v-if="sliceDescription">{{slice(entity.shortDescription, 300)}}</small>
76-
<small v-if="!sliceDescription">{{showShortDescription}}</small>
76+
<small v-else>{{showShortDescription}}</small>
77+
<button v-if="entity.shortDescription.length > 120" @click="expandedDescription = !expandedDescription" class="button button--text entity-card__toggle-description">
78+
{{ expandedDescription ? text('Ver menos') : text('Ver mais') }}
79+
</button>
7780
</div>
7881

7982
<div v-if="entity.__objectType=='space'" class="entity-card__content--description">

src/modules/Components/components/entity-card/texts.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
'As inscrições encerraram-se no dia' => i::__('As inscrições encerraram-se no dia'),
66
'As inscrições encerram-se no dia' => i::__('As inscrições encerram-se no dia'),
77
'As inscrições encerrarão no dia' => i::__('As inscrições encerrarão no dia'),
8+
'Ver mais' => i::__('Ver mais'),
9+
'Ver menos' => i::__('Ver menos'),
810
];

src/modules/Search/views/search/opportunity.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@
3535
</label>
3636
</template>
3737
<mc-tab icon="list" label="<?php i::esc_attr_e('Lista') ?>" slug="list">
38-
<div class="tabs-component__panels">
39-
<div class="search__tabs--list">
40-
<search-list :pseudo-query="pseudoQuery" type="opportunity" select="name,type,shortDescription,files.avatar,seals,terms,registrationFrom,registrationTo,hasEndDate,isContinuousFlow">
41-
<template #filter>
42-
43-
44-
<search-filter-opportunity :pseudo-query="pseudoQuery"></search-filter-opportunity>
45-
</template>
46-
</search-list>
47-
</div>
38+
<div class="search__tabs--list">
39+
<search-list :pseudo-query="pseudoQuery" type="opportunity" select="name,type,shortDescription,files.avatar,seals,terms,registrationFrom,registrationTo,hasEndDate,isContinuousFlow">
40+
<template #filter>
41+
<search-filter-opportunity :pseudo-query="pseudoQuery"></search-filter-opportunity>
42+
</template>
43+
</search-list>
4844
</div>
4945
</mc-tab>
5046
<mc-tab v-if="global.auth.is('admin')" icon="table-view" label="<?php i::esc_attr_e('Tabela') ?>" slug="tables">

src/themes/BaseV2/assets-src/sass/2.components/_entity-card.scss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,34 @@
190190
&-shortDescription {
191191
word-break:break-word;
192192
font-size: size(14);
193+
194+
@media (max-width: size(800)) {
195+
line-height: size(19);
196+
197+
small {
198+
display: -webkit-box;
199+
-webkit-line-clamp: 3;
200+
-webkit-box-orient: vertical;
201+
overflow: hidden;
202+
}
203+
204+
&.expanded small {
205+
-webkit-line-clamp: unset;
206+
overflow: visible;
207+
}
208+
}
209+
210+
.entity-card__toggle-description {
211+
background: none;
212+
border: none;
213+
color: var(--mc-primary-500);
214+
cursor: pointer;
215+
font-size: size(14);
216+
font-weight: 700;
217+
margin-top: size(4);
218+
padding: 0;
219+
text-decoration: underline;
220+
}
193221
}
194222

195223
&--occurrence {

src/themes/BaseV2/assets-src/sass/pages/_search.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -585,14 +585,6 @@
585585
padding-bottom: size(40);
586586
margin-bottom: 0;
587587
min-height: size(500);
588-
589-
@media (max-width: size(800)) {
590-
margin-top: size(123);
591-
}
592-
593-
@media (max-width: size(500)) {
594-
margin-top: size(130);
595-
}
596588
}
597589

598590
.search__tabs--list {

0 commit comments

Comments
 (0)