proj card fixes
This commit is contained in:
@@ -285,9 +285,9 @@
|
|||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div
|
<ProjectCardList
|
||||||
v-if="projects && projects?.length > 0"
|
v-if="projects && projects?.length > 0"
|
||||||
:class="'project-list display-mode--' + (cosmetics.searchDisplayMode.collection || 'list')"
|
:layout="cosmetics.searchDisplayMode.collection"
|
||||||
>
|
>
|
||||||
<ProjectCard
|
<ProjectCard
|
||||||
v-for="project in (route.params.projectType !== undefined
|
v-for="project in (route.params.projectType !== undefined
|
||||||
@@ -343,7 +343,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</ProjectCard>
|
</ProjectCard>
|
||||||
</div>
|
</ProjectCardList>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div class="mx-auto flex flex-col justify-center gap-8 p-6 text-center">
|
<div class="mx-auto flex flex-col justify-center gap-8 p-6 text-center">
|
||||||
<EmptyIllustration class="h-[120px] w-auto" />
|
<EmptyIllustration class="h-[120px] w-auto" />
|
||||||
@@ -402,6 +402,7 @@ import {
|
|||||||
NormalPage,
|
NormalPage,
|
||||||
OverflowMenu,
|
OverflowMenu,
|
||||||
ProjectCard,
|
ProjectCard,
|
||||||
|
ProjectCardList,
|
||||||
RadioButtons,
|
RadioButtons,
|
||||||
SidebarCard,
|
SidebarCard,
|
||||||
useRelativeTime,
|
useRelativeTime,
|
||||||
|
|||||||
@@ -186,8 +186,7 @@
|
|||||||
<div v-if="navLinks.length > 2" class="mb-4 max-w-full overflow-x-auto">
|
<div v-if="navLinks.length > 2" class="mb-4 max-w-full overflow-x-auto">
|
||||||
<NavTabs :links="navLinks" />
|
<NavTabs :links="navLinks" />
|
||||||
</div>
|
</div>
|
||||||
<template v-if="projects && projects.length > 0">
|
<ProjectCardList v-if="projects && projects.length > 0">
|
||||||
<div class="project-list display-mode--list">
|
|
||||||
<ProjectCard
|
<ProjectCard
|
||||||
v-for="project in (route.params.projectType !== undefined
|
v-for="project in (route.params.projectType !== undefined
|
||||||
? (projects ?? []).filter((x) =>
|
? (projects ?? []).filter((x) =>
|
||||||
@@ -227,9 +226,7 @@
|
|||||||
:color="project.color"
|
:color="project.color"
|
||||||
layout="list"
|
layout="list"
|
||||||
/>
|
/>
|
||||||
</div>
|
</ProjectCardList>
|
||||||
</template>
|
|
||||||
|
|
||||||
<div v-else-if="true" class="error">
|
<div v-else-if="true" class="error">
|
||||||
<UpToDate class="icon" />
|
<UpToDate class="icon" />
|
||||||
<br />
|
<br />
|
||||||
@@ -267,6 +264,7 @@ import {
|
|||||||
ContentPageHeader,
|
ContentPageHeader,
|
||||||
OverflowMenu,
|
OverflowMenu,
|
||||||
ProjectCard,
|
ProjectCard,
|
||||||
|
ProjectCardList,
|
||||||
useVIntl,
|
useVIntl,
|
||||||
} from '@modrinth/ui'
|
} from '@modrinth/ui'
|
||||||
import type { Organization, ProjectStatus, ProjectType, ProjectV3 } from '@modrinth/utils'
|
import type { Organization, ProjectStatus, ProjectType, ProjectV3 } from '@modrinth/utils'
|
||||||
|
|||||||
@@ -286,9 +286,9 @@
|
|||||||
<NavTabs :links="navLinks" />
|
<NavTabs :links="navLinks" />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="projects.length > 0">
|
<div v-if="projects.length > 0">
|
||||||
<div
|
<ProjectCardList
|
||||||
v-if="route.params.projectType !== 'collections'"
|
v-if="route.params.projectType !== 'collections'"
|
||||||
:class="'project-list display-mode--' + cosmetics.searchDisplayMode.user"
|
:layout="cosmetics.searchDisplayMode.user"
|
||||||
>
|
>
|
||||||
<ProjectCard
|
<ProjectCard
|
||||||
v-for="project in (route.params.projectType !== undefined
|
v-for="project in (route.params.projectType !== undefined
|
||||||
@@ -315,6 +315,7 @@
|
|||||||
...project.additional_categories,
|
...project.additional_categories,
|
||||||
]"
|
]"
|
||||||
:followers="project.followers"
|
:followers="project.followers"
|
||||||
|
:banner="project.gallery.find((element) => element.featured)?.url"
|
||||||
:color="project.color ?? undefined"
|
:color="project.color ?? undefined"
|
||||||
:environment="{
|
:environment="{
|
||||||
clientSide: project.client_side,
|
clientSide: project.client_side,
|
||||||
@@ -328,7 +329,7 @@
|
|||||||
"
|
"
|
||||||
:status="project.status"
|
:status="project.status"
|
||||||
/>
|
/>
|
||||||
</div>
|
</ProjectCardList>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-else-if="
|
v-else-if="
|
||||||
@@ -499,6 +500,7 @@ import {
|
|||||||
NewModal,
|
NewModal,
|
||||||
OverflowMenu,
|
OverflowMenu,
|
||||||
ProjectCard,
|
ProjectCard,
|
||||||
|
ProjectCardList,
|
||||||
TagItem,
|
TagItem,
|
||||||
useRelativeTime,
|
useRelativeTime,
|
||||||
useVIntl,
|
useVIntl,
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="smart-clickable" :class="{ 'smart-clickable--has-clickable': !!$slots.clickable }">
|
<div class="smart-clickable" :class="{ 'smart-clickable--has-clickable': !!$slots.clickable }">
|
||||||
<slot name="clickable" />
|
<slot name="clickable" />
|
||||||
<div v-bind="$attrs" class="smart-clickable__contents pointer-events-none">
|
<div
|
||||||
|
v-bind="$attrs"
|
||||||
|
class="smart-clickable__contents"
|
||||||
|
:class="{
|
||||||
|
'pointer-events-none': !!$slots.clickable,
|
||||||
|
}"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,6 +23,6 @@ withDefaults(
|
|||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.grid-project-list {
|
.grid-project-list {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, minmax(150px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="w-full" @mouseenter="$emit('hover')">
|
|
||||||
<SmartClickable class="w-full project-card-container">
|
<SmartClickable class="w-full project-card-container">
|
||||||
<template v-if="link" #clickable>
|
<template v-if="link" #clickable>
|
||||||
<AutoLink
|
<AutoLink
|
||||||
:to="link"
|
:to="link"
|
||||||
class="rounded-xl no-outline no-click-animation custom-focus-indicator"
|
class="rounded-xl no-outline no-click-animation custom-focus-indicator"
|
||||||
|
@mouseenter="$emit('hover')"
|
||||||
></AutoLink>
|
></AutoLink>
|
||||||
</template>
|
</template>
|
||||||
<div v-if="layout === 'grid'" :class="[baseCardStyle, 'flex flex-col']">
|
<div v-if="layout === 'grid'" :class="[baseCardStyle, 'flex flex-col']">
|
||||||
@@ -67,11 +67,7 @@
|
|||||||
<div class="flex items-center gap-3 no-wrap flex-wrap">
|
<div class="flex items-center gap-3 no-wrap flex-wrap">
|
||||||
<ProjectCardStats :downloads="downloads" :followers="followers" />
|
<ProjectCardStats :downloads="downloads" :followers="followers" />
|
||||||
</div>
|
</div>
|
||||||
<ProjectCardDate
|
<ProjectCardDate v-if="date && autoDisplayDate" :type="autoDisplayDate" :date="date" />
|
||||||
v-if="date && autoDisplayDate"
|
|
||||||
:type="autoDisplayDate"
|
|
||||||
:date="date"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -135,7 +131,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</SmartClickable>
|
</SmartClickable>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
@@ -20,6 +20,14 @@ const VERSIONS: VersionEntry[] = [
|
|||||||
// - Adjusted pop-up design to include a border.
|
// - Adjusted pop-up design to include a border.
|
||||||
// - Updated translations.`,
|
// - Updated translations.`,
|
||||||
// },
|
// },
|
||||||
|
{
|
||||||
|
date: `2026-02-07T12:10:00-08:00`,
|
||||||
|
product: 'web',
|
||||||
|
body: `## Improvements
|
||||||
|
- Fixed grid project lists displaying too narrow sometimes.
|
||||||
|
- Fixed grid project list on user profiles not displaying project banners.
|
||||||
|
- Fixed grid project list cards not matching the height of their neighbor.`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
date: `2026-02-07T11:45:00-08:00`,
|
date: `2026-02-07T11:45:00-08:00`,
|
||||||
product: 'web',
|
product: 'web',
|
||||||
|
|||||||
Reference in New Issue
Block a user