I have written some code for a Nuxt component that takes a chess PGN and translates it into a series of png images on the app. The code looks like this:
<template>
<v-container fluid class="gamePanel-wrapper">
<v-row no-gutters>
<div v-for="col in Array(8).keys()" :key="col.key">
<div v-for="row in Array(8).keys()" :key="row.key">
<img :src="getTile(row,col)" class="tileImage">
</div>
</div>
</v-row>
<v-row>
<v-col align="center">
<h3>Turn Information Goes Here</h3>
</v-col>
</v-row>
</v-container>
</template>
And the output looks like this:
I have a few questions about how I can get this game board looking like how I want:
Thanks in advance.
No gaps should be there. Look at this codesandbox, I used your markup, and there are no gaps between tiles. Check your ".gamePanel-wrapper" or "tileImage" classes if there are no css rules that causes this. Or, reproduce the problem in the provided sandbox, and post it here.
Also, it is working in the sandbox, although for 3. I changed the orientation to column
and used align="center"
.
I don't quite get what you mean by "flush with the board" and "lock", but I presume is something like the grey areas in the example. If not, please explain.