Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions apps/app-frontend/src/components/ui/ModpackVersionModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import { CheckIcon } from '@modrinth/assets'
import { CheckIcon, ExternalIcon } from '@modrinth/assets'
import { Badge, Button } from '@modrinth/ui'
import { computed, ref } from 'vue'

Expand Down Expand Up @@ -65,13 +65,13 @@ const onHide = () => {
<div class="table-cell table-text download-cell" />
<div class="name-cell table-cell table-text">Name</div>
<div class="table-cell table-text">Supports</div>
<div class="table-cell table-text download-cell" />
</div>
<div class="scrollable">
<div
v-for="version in filteredVersions"
:key="version.id"
class="table-row with-columns selectable"
@click="$router.push(`/project/${version.project_id}/version/${version.id}`)"
class="table-row with-columns"
>
<div class="table-cell table-text">
<Button
Expand Down Expand Up @@ -115,6 +115,14 @@ const onHide = () => {
{{ version.game_versions.join(', ') }}
</span>
</div>
<div class="table-cell table-text">
<Button
icon-only
@click.stop="$router.push(`/project/${version.project_id}/version/${version.id}`)"
>
<ExternalIcon />
</Button>
</div>
</div>
</div>
</div>
Expand All @@ -134,7 +142,7 @@ const onHide = () => {
}

.with-columns {
grid-template-columns: min-content 1fr 1fr;
grid-template-columns: min-content 1fr 1fr min-content;
}

.scrollable {
Expand Down