move loaders up

This commit is contained in:
tdgao
2026-08-20 13:04:23 -06:00
parent f026da566d
commit 739fe34d67
2 changed files with 10 additions and 11 deletions
@@ -347,6 +347,15 @@ export const backgroundOptions = [
] as const
export const symbolOptions = [
/////////////////////////
// loaders
/////////////////////////
{ id: 'fabric', name: names.fabric, asset: fabric, category: 'loader' },
{ id: 'forge', name: names.forge, asset: forge, category: 'loader' },
{ id: 'neoforge', name: names.neoForge, asset: neoForge, category: 'loader' },
{ id: 'quilt', name: names.quilt, asset: quilt, category: 'loader' },
// Cobblemon: Poké Ball
{ id: 'poke_ball', name: names.pokeBall, asset: pokeBall, category: 'modded' },
@@ -446,15 +455,6 @@ export const symbolOptions = [
{ id: 'lantern', name: names.lantern, asset: lantern, category: 'vanilla' },
{ id: 'tnt', name: names.tnt, asset: tnt, category: 'vanilla' },
{ id: 'command_block', name: names.commandBlock, asset: commandBlock, category: 'vanilla' },
/////////////////////////
// loaders
/////////////////////////
{ id: 'fabric', name: names.fabric, asset: fabric, category: 'loader' },
{ id: 'forge', name: names.forge, asset: forge, category: 'loader' },
{ id: 'neoforge', name: names.neoForge, asset: neoForge, category: 'loader' },
{ id: 'quilt', name: names.quilt, asset: quilt, category: 'loader' },
] as const
export type BackgroundId = (typeof backgroundOptions)[number]['id']
@@ -67,7 +67,6 @@ const selectedSymbolOption = computed(
() => symbolOptions.find((option) => option.id === selectedSymbol.value)!,
)
const vanillaSymbolStartIndex = symbolOptions.findIndex((option) => option.category === 'vanilla')
const loaderSymbolStartIndex = symbolOptions.findIndex((option) => option.category === 'loader')
const selectedConfig = computed<InstanceIconConfig>(() => ({
background: { ...selectedBackgroundOption.value.background },
symbol: selectedSymbol.value,
@@ -454,7 +453,7 @@ const messages = defineMessages({
<div class="grid grid-cols-6 gap-2.5">
<template v-for="(option, index) in symbolOptions" :key="option.id">
<hr
v-if="index === vanillaSymbolStartIndex || index === loaderSymbolStartIndex"
v-if="index === vanillaSymbolStartIndex"
class="col-span-6 my-2.5 mx-1 w-full border-0 border-t border-solid border-surface-5"
/>
<button