Allow alternative build exploration on desktop :) (fix #7)
All checks were successful
pipeline / build-and-push-images (push) Successful in 31s
pipeline / deploy (push) Successful in 7s

This commit is contained in:
2024-12-07 16:42:01 +01:00
parent 724600c94c
commit fbcf083f9f
2 changed files with 7 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ const {data: stats}: {data: Ref<{patch: number, count: number}>} = await useFetc
<h2 :class="'sidebar-link ' + (state == 'items' && laneState == i ? 'sidebar-link-selected' : '')" <h2 :class="'sidebar-link ' + (state == 'items' && laneState == i ? 'sidebar-link-selected' : '')"
@click="handleStateChange('items', i)" @click="handleStateChange('items', i)"
style="margin-top: 10px; font-size: 1.9rem; padding-left: 35px;">Items</h2> style="margin-top: 10px; font-size: 1.9rem; padding-left: 35px;">Items</h2>
<h2 :class="'sidebar-link ' + (state == 'alternatives' && laneState == i ? 'sidebar-link-selected' : '')"
@click="handleStateChange('alternatives', i)"
style="margin-top: 10px; font-size: 1.9rem; padding-left: 35px;">Alternatives</h2>
</div> </div>

View File

@@ -48,6 +48,9 @@ function updateState(newState : string, newLane : number) {
<ItemViewer v-if="state == 'items' && championData.gameCount > 0" <ItemViewer v-if="state == 'items' && championData.gameCount > 0"
style="margin:auto; margin-top: 40px;" style="margin:auto; margin-top: 40px;"
:builds="lane.builds!!" /> :builds="lane.builds!!" />
<ItemTree v-if="state == 'alternatives' && championData.gameCount > 0"
style="margin: auto; margin-top: 40px; width: fit-content;"
:tree="lane.builds!!.tree" />
<h2 v-if="championData.gameCount == 0" <h2 v-if="championData.gameCount == 0"
style="margin: auto; margin-top: 20px; width: fit-content;"> style="margin: auto; margin-top: 20px; width: fit-content;">
Sorry, there is no data for this champion :( Sorry, there is no data for this champion :(