Allow alternative build exploration on desktop :) (fix #7)
This commit is contained in:
@@ -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' : '')"
|
||||
@click="handleStateChange('items', i)"
|
||||
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>
|
||||
|
||||
|
||||
@@ -48,6 +48,9 @@ function updateState(newState : string, newLane : number) {
|
||||
<ItemViewer v-if="state == 'items' && championData.gameCount > 0"
|
||||
style="margin:auto; margin-top: 40px;"
|
||||
: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"
|
||||
style="margin: auto; margin-top: 20px; width: fit-content;">
|
||||
Sorry, there is no data for this champion :(
|
||||
|
||||
Reference in New Issue
Block a user