New gallery creation/editing/deleting UI (#826)

* New gallery creation/editing/deleting UI

* Finish new gallery UI

* port dp changes here

* Add ordering fix optional fields

* Fix dropping

* Fix fmt

* Fix version creation broken, edit issues, project type setting

* Update gallery in search
This commit is contained in:
Geometrically
2022-12-31 23:47:47 -07:00
committed by GitHub
parent f11aab6c19
commit d2b1404907
18 changed files with 488 additions and 321 deletions

View File

@@ -365,7 +365,11 @@
:id="result.slug ? result.slug : result.project_id"
:key="result.project_id"
:display="$cosmetics.searchDisplayMode[projectType.id]"
:gallery-images="result.gallery"
:gallery-images="
result.featured_gallery
? result.featured_gallery
: result.gallery[0]
"
:type="result.project_type"
:author="result.author"
:name="result.title"
@@ -383,6 +387,7 @@
:hide-loaders="
['resourcepack', 'datapack'].includes(projectType.id)
"
:color="result.color"
/>
<div v-if="results && results.length === 0" class="no-results">
<p>No results found for your query!</p>
@@ -966,6 +971,11 @@ export default {
white-space: nowrap;
}
}
.square-button {
margin-top: auto;
margin-bottom: 0.25rem;
}
}
}