fix(projects): do not hide 6th project on project overview
(cherry picked from commit b52d6dbf59f48a86cbcfad2a24c7fce9e3575639)
This commit is contained in:
parent
40105ee4ce
commit
8f5273600a
@ -1,5 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<ul class="project-grid">
|
<ul
|
||||||
|
class="project-grid"
|
||||||
|
:class="{ 'show-even-number-of-projects': showEvenNumberOfProjects }"
|
||||||
|
>
|
||||||
<li
|
<li
|
||||||
v-for="(item, index) in filteredProjects"
|
v-for="(item, index) in filteredProjects"
|
||||||
:key="`project_${item.id}_${index}`"
|
:key="`project_${item.id}_${index}`"
|
||||||
@ -19,11 +22,13 @@ import ProjectCard from './ProjectCard.vue'
|
|||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
projects: IProject[],
|
projects: IProject[],
|
||||||
showArchived?: boolean,
|
showArchived?: boolean,
|
||||||
itemLimit?: boolean
|
itemLimit?: boolean,
|
||||||
|
showEvenNumberOfProjects?: boolean,
|
||||||
}>(), {
|
}>(), {
|
||||||
projects: () => [],
|
projects: () => [],
|
||||||
showArchived: false,
|
showArchived: false,
|
||||||
itemLimit: false,
|
itemLimit: false,
|
||||||
|
showEvenNumberOfProjects: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
const filteredProjects = computed(() => {
|
const filteredProjects = computed(() => {
|
||||||
@ -58,9 +63,13 @@ const filteredProjects = computed(() => {
|
|||||||
|
|
||||||
@media screen and (min-width: $widescreen) {
|
@media screen and (min-width: $widescreen) {
|
||||||
--project-grid-columns: 5;
|
--project-grid-columns: 5;
|
||||||
|
}
|
||||||
|
|
||||||
.project-grid-item:nth-child(6) {
|
&.show-even-number-of-projects {
|
||||||
display: none;
|
@media screen and (min-width: $widescreen) {
|
||||||
|
.project-grid-item:nth-child(5) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
<ProjectCardGrid
|
<ProjectCardGrid
|
||||||
v-cy="'projectCardGrid'"
|
v-cy="'projectCardGrid'"
|
||||||
:projects="projectHistory"
|
:projects="projectHistory"
|
||||||
|
:show-even-number-of-projects="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ShowTasks
|
<ShowTasks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user