make removal of gallery/project tiles optional when filters selected
This commit is contained in:
parent
1d7c8dd8a2
commit
2190ecf571
4 changed files with 12 additions and 3 deletions
|
@ -95,4 +95,10 @@ export type GalleryList = {
|
|||
* the tags to use for filtering entries
|
||||
*/
|
||||
tags?: EntryTagCollection
|
||||
/**
|
||||
* whether or not tag filtering removes entries completely from view;
|
||||
* if false, they will apply a class selector instead
|
||||
* in order to manually style (CSS filtering/opacity/etc.)
|
||||
*/
|
||||
removeFromView?: boolean
|
||||
}
|
||||
|
|
|
@ -43,4 +43,5 @@ export type ProjectList = {
|
|||
content: string
|
||||
}}
|
||||
tags?: EntryTagCollection
|
||||
removeFromView?: boolean
|
||||
}
|
||||
|
|
|
@ -202,7 +202,8 @@ onMounted(async () => {
|
|||
v-for='(entry, id) in entries'
|
||||
)
|
||||
GalleryTile(
|
||||
v-if='!entry.hidden'
|
||||
v-if='!entry.hidden || !config.removeFromView'
|
||||
:class='{ hidden: projects[id].hidden && !config.removeFromView }'
|
||||
:entry='entry'
|
||||
:id='id'
|
||||
:hideWarnings='hideWarnings'
|
||||
|
|
|
@ -63,14 +63,15 @@ onMounted(async () => {
|
|||
|
||||
<template lang="pug">
|
||||
.template.project-list
|
||||
#projects(
|
||||
.projects(
|
||||
v-if='ready'
|
||||
)
|
||||
Transition(
|
||||
v-for='id in projectIds'
|
||||
)
|
||||
ProjectTile(
|
||||
v-if='!projects[id].hidden'
|
||||
v-if='!projects[id].hidden || !config.removeFromView'
|
||||
:class='{ hidden: projects[id].hidden && !config.removeFromView }'
|
||||
:id='id'
|
||||
:info='projects[id]'
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue